Fix a bug in billing_increment
This commit is contained in:
parent
7cbf2021e3
commit
b8f2635e3b
|
@ -78,6 +78,8 @@ class Container_Collector(threading.Thread):
|
||||||
global workercinfo
|
global workercinfo
|
||||||
global G_masterip
|
global G_masterip
|
||||||
cpu_val = '0'
|
cpu_val = '0'
|
||||||
|
if vnode_name not in workercinfo.keys():
|
||||||
|
return
|
||||||
if 'cpu_use' in workercinfo[vnode_name].keys():
|
if 'cpu_use' in workercinfo[vnode_name].keys():
|
||||||
cpu_val = workercinfo[vnode_name]['cpu_use']['val']
|
cpu_val = workercinfo[vnode_name]['cpu_use']['val']
|
||||||
if vnode_name not in increment.keys():
|
if vnode_name not in increment.keys():
|
||||||
|
|
Loading…
Reference in New Issue