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
Roberto Hueso Gómez 2020-04-28 11:16:59 +02:00
parent 1a83ebba23
commit 5444e453ee
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ class OgVirtualOperations:
'filesystem': '',
'os': '',
'size': int(free_disk / 1024),
'used_size': int(100 * used_disk / free_disk)},
'used_size': int(100 * used_disk / total_disk)},
'partition_setup': []}
for i in range(4):
part_json = {'disk': 1,