Merge pull request #189 from dgquintas/network_dynamic_colors_fix

Fixed processing of dynamic_colors settings in network.
This commit is contained in:
enkore 2015-04-03 15:22:04 +02:00
commit f695af65e5

View File

@ -313,6 +313,8 @@ class Network(IntervalModule, ColorRangeModule):
else:
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.kbs_arr = [0.0] * self.graph_width