make pep8 happy
This commit is contained in:
parent
29e2647ad5
commit
bb2aa112c3
|
@ -159,7 +159,7 @@ class RRD(object):
|
||||||
ds.unknown_sec), "utf-8"))
|
ds.unknown_sec), "utf-8"))
|
||||||
|
|
||||||
if b'</cdp_prep>' in line:
|
if b'</cdp_prep>' in line:
|
||||||
restore.stdin.write(added_ds_num*b"""
|
restore.stdin.write(added_ds_num * b"""
|
||||||
<ds>
|
<ds>
|
||||||
<primary_value> NaN </primary_value>
|
<primary_value> NaN </primary_value>
|
||||||
<secondary_value> NaN </secondary_value>
|
<secondary_value> NaN </secondary_value>
|
||||||
|
@ -173,7 +173,7 @@ class RRD(object):
|
||||||
restore.stdin.write(
|
restore.stdin.write(
|
||||||
line.replace(
|
line.replace(
|
||||||
b'</row>',
|
b'</row>',
|
||||||
(added_ds_num*b'<v>NaN</v>')+b'</row>'
|
(added_ds_num * b'<v>NaN</v>') + b'</row>'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ from lib.nodes import build_mac_table
|
||||||
|
|
||||||
def import_vis_data(graph, nodes, vis_data):
|
def import_vis_data(graph, nodes, vis_data):
|
||||||
macs = build_mac_table(nodes)
|
macs = build_mac_table(nodes)
|
||||||
nodes_a = map(lambda d: 2*[d['primary']],
|
nodes_a = map(lambda d: 2 * [d['primary']],
|
||||||
filter(lambda d: 'primary' in d, vis_data))
|
filter(lambda d: 'primary' in d, vis_data))
|
||||||
nodes_b = map(lambda d: [d['secondary'], d['of']],
|
nodes_b = map(lambda d: [d['secondary'], d['of']],
|
||||||
filter(lambda d: 'secondary' in d, vis_data))
|
filter(lambda d: 'secondary' in d, vis_data))
|
||||||
|
|
|
@ -19,7 +19,7 @@ class RRD(object):
|
||||||
self.displayTimeGlobal = display_time_global
|
self.displayTimeGlobal = display_time_global
|
||||||
self.displayTimeNode = display_time_node
|
self.displayTimeNode = display_time_node
|
||||||
|
|
||||||
self.currentTimeInt = (int(time.time())/60)*60
|
self.currentTimeInt = (int(time.time()) / 60) * 60
|
||||||
self.currentTime = str(self.currentTimeInt)
|
self.currentTime = str(self.currentTimeInt)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue