]> git.donarmstrong.com Git - infobot.git/commitdiff
used \* instead of / for days, founded by fooz
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 17 Jan 2001 12:22:23 +0000 (12:22 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 17 Jan 2001 12:22:23 +0000 (12:22 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@242 c11ca15a-4712-0410-83d8-924469b57eb5

src/Modules/Factoids.pl

index 2c8e9c7418aab1d762c1deefcc219bba6ccb2971..abe0b361cf470c92d7901049f1728025482f5f10 100644 (file)
@@ -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 {