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

kaner at torproject.org kaner at torproject.org
Sun Jul 15 08:37:27 UTC 2012


commit 18da83ac968254e9728f79fb38356afbcebeb126
Author: Christian Fromme <kaner at strace.org>
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])



More information about the tor-commits mailing list