Fixed processing of dynamic_colors settings, previously ignored.
This commit is contained in:
parent
ab4bb9af20
commit
f81841c722
@ -313,6 +313,8 @@ class Network(IntervalModule, ColorRangeModule):
|
|||||||
else:
|
else:
|
||||||
self.network_traffic = None
|
self.network_traffic = None
|
||||||
|
|
||||||
|
if not self.dynamic_color:
|
||||||
|
self.end_color = self.start_color
|
||||||
self.colors = self.get_hex_color_range(self.start_color, self.end_color, int(self.upper_limit))
|
self.colors = self.get_hex_color_range(self.start_color, self.end_color, int(self.upper_limit))
|
||||||
self.kbs_arr = [0.0] * self.graph_width
|
self.kbs_arr = [0.0] * self.graph_width
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user