[mirrorbrain-commits] [mod_stats] r67 - /trunk/tools/dlcount.py

From: <poeml_at_mirrorbrain.org>
Date: Sun, 14 Feb 2010 16:12:05 -0000
Author: poeml
Date: Sun Feb 14 17:12:02 2010
New Revision: 67

URL: http://svn.mirrorbrain.org/viewvc/mod_stats?rev=67&view=rev
Log:
make the output of the counting script clearer

Modified:
    trunk/tools/dlcount.py

Modified: trunk/tools/dlcount.py
URL: http://svn.mirrorbrain.org/viewvc/mod_stats/trunk/tools/dlcount.py?rev=67&r1=66&r2=67&view=diff
==============================================================================
--- trunk/tools/dlcount.py (original)
+++ trunk/tools/dlcount.py Sun Feb 14 17:12:02 2010
_at_@ -444,8 +444,8 @@
         counterdict[t] = get(t, 0) + 1
 
     delta = time.time() - start
-    print 'processed %s lines in %s seconds' % (n, delta)
-    print 'found %s countables' % len(counterdict)
+    print 'processed log in %.1f seconds, found %s valid and unique requests' % (delta, n)
+    print '%s distinct countables' % len(counterdict)
     start = time.time()
 
 
_at_@ -468,8 +468,8 @@
                 counter.count += val
             counter.save()
 
-    delta = time.time() - start
-    print 'saved data in %s seconds' % delta
+        delta = time.time() - start
+        print 'saved counts to db in %.1f seconds' % delta
 
     sys.exit(0)
 




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Sun Feb 14 2010 - 16:12:07 GMT

This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT