fixing bug
This commit is contained in:
parent
652273db90
commit
ae596e2a49
|
@ -557,7 +557,7 @@ class Snapshot(JoinedWithOneDeviceMixin, ActionWithOneDevice):
|
||||||
for act in hd.actions:
|
for act in hd.actions:
|
||||||
if not act.type == "TestDataStorage":
|
if not act.type == "TestDataStorage":
|
||||||
continue
|
continue
|
||||||
data['lifetime'] = act.lifetime.total_seconds()
|
data['lifetime'] = act.lifetime
|
||||||
break
|
break
|
||||||
hdds.append(data)
|
hdds.append(data)
|
||||||
|
|
||||||
|
|
|
@ -346,7 +346,7 @@ class Device(Thing):
|
||||||
|
|
||||||
if act.type == 'Live':
|
if act.type == 'Live':
|
||||||
allocate = copy.copy(allo)
|
allocate = copy.copy(allo)
|
||||||
lifetime = act.usage_time_hdd.total_seconds()
|
lifetime = act.usage_time_hdd
|
||||||
allocate['type'] = 'Live'
|
allocate['type'] = 'Live'
|
||||||
allocate['liveCreate'] = act.created
|
allocate['liveCreate'] = act.created
|
||||||
for hd in lifestimes:
|
for hd in lifestimes:
|
||||||
|
|
Reference in New Issue