fixing bug

This commit is contained in:
Cayo Puigdefabregas 2021-01-14 18:10:50 +01:00
parent 652273db90
commit ae596e2a49
2 changed files with 2 additions and 2 deletions

View file

@ -557,7 +557,7 @@ class Snapshot(JoinedWithOneDeviceMixin, ActionWithOneDevice):
for act in hd.actions:
if not act.type == "TestDataStorage":
continue
data['lifetime'] = act.lifetime.total_seconds()
data['lifetime'] = act.lifetime
break
hdds.append(data)

View file

@ -346,7 +346,7 @@ class Device(Thing):
if act.type == 'Live':
allocate = copy.copy(allo)
lifetime = act.usage_time_hdd.total_seconds()
lifetime = act.usage_time_hdd
allocate['type'] = 'Live'
allocate['liveCreate'] = act.created
for hd in lifestimes: