mirror of https://git.48k.eu/ogclient
Fix disk used size calculation
This patch calculates correctly the percentage of disk used. This could cause an overflow on the ogAdmSever DB.more_events
parent
1a83ebba23
commit
5444e453ee
|
@ -170,7 +170,7 @@ class OgVirtualOperations:
|
||||||
'filesystem': '',
|
'filesystem': '',
|
||||||
'os': '',
|
'os': '',
|
||||||
'size': int(free_disk / 1024),
|
'size': int(free_disk / 1024),
|
||||||
'used_size': int(100 * used_disk / free_disk)},
|
'used_size': int(100 * used_disk / total_disk)},
|
||||||
'partition_setup': []}
|
'partition_setup': []}
|
||||||
for i in range(4):
|
for i in range(4):
|
||||||
part_json = {'disk': 1,
|
part_json = {'disk': 1,
|
||||||
|
|
Loading…
Reference in New Issue