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=797d3e326d317c1f134e1128c25c32105ae51549;p=infobot.git used \* instead of / for days, founded by fooz git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@242 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Modules/Factoids.pl b/src/Modules/Factoids.pl index 2c8e9c7..abe0b36 100644 --- a/src/Modules/Factoids.pl +++ b/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 {