Skip to content

Commit

Permalink
Alert < 3 seconds are no longer displayed 2/2
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed Jan 24, 2015
1 parent 8a7bebc commit 722406e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glances/core/glances_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def add(self, item_state, item_type, item_value,
self.reset_process_sort()

endtime = time.mktime(datetime.now().timetuple())
if endtime - self.logs_list[item_index][0] > self.peak_time:
if endtime - self.logs_list[item_index][0] > peak_time:
# If event is > peak_time seconds
self.logs_list[item_index][1] = endtime
else:
Expand Down

0 comments on commit 722406e

Please sign in to comment.