size of db, debianized
authorheiko
Tue, 02 Jan 2007 23:05:47 +0000
changeset 19 f741b1822a02
parent 18 8e9577bcbe71
child 20 dab30914e25e
size of db, debianized
debian/changelog
exigrey.pl
--- a/debian/changelog	Tue Jan 02 21:46:52 2007 +0000
+++ b/debian/changelog	Tue Jan 02 23:05:47 2007 +0000
@@ -1,3 +1,8 @@
+exigrey (0.7-1) stable; urgency=low
+
+  * new upstream:
+    - stats: size of database
+
 exigrey (0.6-1) stable; urgency=low
 
   * bug with umask fixed
--- a/exigrey.pl	Tue Jan 02 21:46:52 2007 +0000
+++ b/exigrey.pl	Tue Jan 02 23:05:47 2007 +0000
@@ -81,13 +81,14 @@
 
 	$_ = <<__;
         date: %s
-          db: $db
+          db: $db (%.1f MB)
        total: $seen
 not returned: %d (%d%%)
       oldest: %.1f days (%s)
 __
 	printf $_, 
 		scalar(localtime), 
+		-s $db / (1024*1024),
 		$seen - $returned, 
 		int(100 * ($seen-$returned)/$seen), 
 		((time - $oldest) / 86400), scalar(localtime $oldest);