fixing metrics
This commit is contained in:
parent
e5af99150d
commit
30246d6be5
|
@ -353,6 +353,7 @@ class Device(Thing):
|
||||||
actions.sort(key=lambda x: x.created)
|
actions.sort(key=lambda x: x.created)
|
||||||
allocates = []
|
allocates = []
|
||||||
for act in actions:
|
for act in actions:
|
||||||
|
lifetime = 0
|
||||||
if act.type == 'Snapshot':
|
if act.type == 'Snapshot':
|
||||||
snapshot = act
|
snapshot = act
|
||||||
lifestimes = snapshot.get_last_lifetimes()
|
lifestimes = snapshot.get_last_lifetimes()
|
||||||
|
|
Reference in New Issue