fixing bug
This commit is contained in:
parent
652273db90
commit
ae596e2a49
|
@ -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)
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Reference in a new issue