fixing metrics

This commit is contained in:
Cayo Puigdefabregas 2021-02-12 20:22:04 +01:00
parent e5af99150d
commit 30246d6be5

View file

@ -353,6 +353,7 @@ class Device(Thing):
actions.sort(key=lambda x: x.created)
allocates = []
for act in actions:
lifetime = 0
if act.type == 'Snapshot':
snapshot = act
lifestimes = snapshot.get_last_lifetimes()