Fix a bug in billing_increment

This commit is contained in:
zhuyj17 2016-08-21 17:41:26 +08:00
parent 7cbf2021e3
commit b8f2635e3b
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,8 @@ class Container_Collector(threading.Thread):
global workercinfo
global G_masterip
cpu_val = '0'
if vnode_name not in workercinfo.keys():
return
if 'cpu_use' in workercinfo[vnode_name].keys():
cpu_val = workercinfo[vnode_name]['cpu_use']['val']
if vnode_name not in increment.keys():