From 66ee7541d5d714ea3ecd7ba2921cb3383babbc72 Mon Sep 17 00:00:00 2001 From: Landon Powell Date: Sun, 12 Jun 2016 18:52:56 -0400 Subject: [PATCH] Update Saddam.py Solution for https://github.com/OffensivePython/Saddam/issues/3 Can't divide by zero. --- Saddam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Saddam.py b/Saddam.py index 3068951..c4914b4 100644 --- a/Saddam.py +++ b/Saddam.py @@ -124,7 +124,7 @@ def Monitor(): start = time.time() while True: try: - current = time.time() - start + current = time.time() - start or 1 bps = (nbytes*8)/current pps = npackets/current out = FMT.format(Calc(npackets, 1000),