summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuburbanFilth <suburb4nfilth@gmail.com>2015-10-20 19:03:00 +0300
committerSuburbanFilth <suburb4nfilth@gmail.com>2015-10-20 19:03:00 +0300
commitc3ea04642fc41657e9a2896bee901d8bdd441e4b (patch)
tree5b9a0749a7e5f915fc265c7c935b64a08936ee96
parenta6970c54f5b59549b240846588c88ed9780aff44 (diff)
forgot to rename 2 vars
forgot to rename the vars used for the info box
-rw-r--r--gping/pinger.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gping/pinger.py b/gping/pinger.py
index e1657da..51d351a 100644
--- a/gping/pinger.py
+++ b/gping/pinger.py
@@ -240,8 +240,8 @@ def plot(url, data, width, height):
for idx, stat in enumerate(stats_box):
from_stat = midpoint.x - round(max_stats_len / 2)
- to_stat = from_ + len(stat)
- canvas.horizontal_line(stat, midpoint.y + idx, from_ ,to )
+ to_stat = from_stat + len(stat)
+ canvas.horizontal_line(stat, midpoint.y + idx, from_stat ,to_stat )
#adding the url to the top
from_url = midpoint.x - round(len(url) / 2)