[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [gettor/master] Add a fix for days where no packages got requested: Don't print those days



commit 18da83ac968254e9728f79fb38356afbcebeb126
Author: Christian Fromme <kaner@xxxxxxxxxx>
Date:   Sun Jul 15 10:36:45 2012 +0200

    Add a fix for days where no packages got requested: Don't print those days
---
 MakeStat.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/MakeStat.py b/MakeStat.py
index 90e5da2..e44b59c 100644
--- a/MakeStat.py
+++ b/MakeStat.py
@@ -60,6 +60,8 @@ def makestats(filename, configPackages):
     return dateInfo, packageCounter            
 
 def printStatsStdout(daystr, stats):
+    if daystr == "":
+        return
     print daystr + " -", 
     for pack in sorted(stats.iterkeys()):
         packstr = "%s:%s" % (pack, stats[pack])

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits