diff options
author | SuburbanFilth <suburb4nfilth@gmail.com> | 2015-10-20 19:03:00 +0300 |
---|---|---|
committer | SuburbanFilth <suburb4nfilth@gmail.com> | 2015-10-20 19:03:00 +0300 |
commit | c3ea04642fc41657e9a2896bee901d8bdd441e4b (patch) | |
tree | 5b9a0749a7e5f915fc265c7c935b64a08936ee96 | |
parent | a6970c54f5b59549b240846588c88ed9780aff44 (diff) |
forgot to rename 2 vars
forgot to rename the vars used for the info box
-rw-r--r-- | gping/pinger.py | 4 |
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) |