From 4a8c8472278ca742dc6da85c5733428e21307a7c Mon Sep 17 00:00:00 2001
From: dms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Date: Wed, 3 Jan 2001 13:36:32 +0000
Subject: [PATCH] - add 'days' to created_time output.

git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@219 c11ca15a-4712-0410-83d8-924469b57eb5
---
 src/Modules/Factoids.pl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Modules/Factoids.pl b/src/Modules/Factoids.pl
index 1e231ef..bde4b98 100644
--- a/src/Modules/Factoids.pl
+++ b/src/Modules/Factoids.pl
@@ -43,7 +43,9 @@ sub CmdFactInfo {
 	my $time = $factinfo{'created_time'};
 	if ($time) {
 	    if (time() - $time > 60*60*24*7) {
-		$string .= " at \037". scalar(localtime $time). "\037";
+		my $days = int( (time() - $time)*60*60*24 );
+		$string .= " at \037". scalar(localtime $time). "\037" .
+				" ($days days) ";
 	    } else {
 		$string .= " ".&Time2String(time() - $time)." ago";
 	    }
-- 
2.39.5