diff options
Diffstat (limited to 'src/virtual/ogOperations.py')
-rw-r--r-- | src/virtual/ogOperations.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/virtual/ogOperations.py b/src/virtual/ogOperations.py index 763c126..836967a 100644 --- a/src/virtual/ogOperations.py +++ b/src/virtual/ogOperations.py @@ -286,6 +286,7 @@ class OgVirtualOperations: part['os'] = '' part['size'] = 0 part['used_size'] = 0 + part['free_size'] = 0 part['virt-drive'] = '' continue g = guestfs.GuestFS(python_return_dict=True) @@ -332,7 +333,8 @@ class OgVirtualOperations: 'filesystem': '', 'os': '', 'size': int(free_disk / 1024), - 'used_size': int(100 * used_disk / total_disk)}], + 'used_size': used_disk, + 'free_size': free_disk}], 'partition_setup': []} for i in range(4): part_json = {'disk': 1, @@ -342,6 +344,7 @@ class OgVirtualOperations: 'os': '', 'size': 0, 'used_size': 0, + 'free_size': 0, 'virt-drive': ''} data['partition_setup'].append(part_json) with open(self.OG_PARTITIONS_CFG_PATH, 'w+') as f: |