Skip to content
Browse files

test tool

  • Loading branch information...
1 parent 954f197 commit 963244fd1ceafec7dbeb3c517d0296ddd440d9b0 @fiorix committed Feb 26, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 scripts/test.py
View
7 scripts/test.py
@@ -84,9 +84,10 @@ def update(self, response=None):
@classmethod
def summary(self):
- pct = self.total_requests*100/self.requests
- print "% 3s%% % 4d req/s @ % 8s/s" % \
- (pct, self.rps, humanreadable(self.bps))
+ if self.rps:
+ pct = self.total_requests*100/self.requests
+ print "% 3s%% % 4d req/s @ % 8s/s" % \
+ (pct, self.rps, humanreadable(self.bps))
print "--"
if self.total_errors:
errpct = self.total_errors*100/self.total_requests

0 comments on commit 963244f

Please sign in to comment.
Something went wrong with that request. Please try again.