commit
e5af99150d
|
@ -376,6 +376,8 @@ class Device(Thing):
|
||||||
allocate = copy.copy(allo)
|
allocate = copy.copy(allo)
|
||||||
allocate['type'] = 'Live'
|
allocate['type'] = 'Live'
|
||||||
allocate['liveCreate'] = act.created
|
allocate['liveCreate'] = act.created
|
||||||
|
allocate['usageTimeHdd'] = 0
|
||||||
|
if act.usage_time_hdd:
|
||||||
allocate['usageTimeHdd'] = act.usage_time_hdd.total_seconds()/3600
|
allocate['usageTimeHdd'] = act.usage_time_hdd.total_seconds()/3600
|
||||||
allocates.append(allocate)
|
allocates.append(allocate)
|
||||||
|
|
||||||
|
|
Reference in New Issue