diff --git a/dashboard.py b/dashboard.py index a90179b..b650c7e 100644 --- a/dashboard.py +++ b/dashboard.py @@ -171,7 +171,7 @@ class TimeSeries(Widget): min_step = 25 steps = ("s", "m", "h", "D", "10D", "M", "Y") step_i = 0 - while True: + while step_i < len(steps): t0 = tickmarks[-1]["t"] x0 = tickmarks[-1]["x"] d0 = datetime.datetime.fromtimestamp(t0)