From: dms Date: Wed, 17 Jan 2001 12:22:23 +0000 (+0000) Subject: used \* instead of / for days, founded by fooz X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=43421b9d60b6bb4e3f070ccf83211d68a348d07a;p=infobot.git used \* instead of / for days, founded by fooz git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@242 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/Modules/Factoids.pl b/blootbot/src/Modules/Factoids.pl index 2c8e9c7..abe0b36 100644 --- a/blootbot/src/Modules/Factoids.pl +++ b/blootbot/src/Modules/Factoids.pl @@ -54,7 +54,7 @@ sub CmdFactInfo { my $time = $factinfo{'created_time'}; if ($time) { if (time() - $time > 60*60*24*7) { - my $days = int( (time() - $time)*60*60*24 ); + my $days = int( (time() - $time)/60/60/24 ); $string .= " at \037". scalar(localtime $time). "\037" . " ($days days) "; } else {