Merge pull request #189 from dgquintas/network_dynamic_colors_fix
Fixed processing of dynamic_colors settings in network.
This commit is contained in:
commit
f695af65e5
@ -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