Skip to content

Commit

Permalink
Fixes #989: Disk space is now rounded in settings (#1004)
Browse files Browse the repository at this point in the history
Fixes #989
  • Loading branch information
atrovato authored Dec 7, 2020
1 parent 4709dd3 commit 752d3b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion front/src/config/demo.json
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@
"size": 499313172480,
"used": 464613756928,
"available": 28587036672,
"capacity": 0.95,
"capacity": 0.953000005,
"mountpoint": "/"
},
"get /api/v1/system/container": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const SystemPage = ({ children, ...props }) => (
<small class="text-muted">
<Text
id="global.percentValue"
fields={{ value: props.systemDiskSpace && props.systemDiskSpace.capacity * 100 }}
fields={{ value: props.systemDiskSpace && Math.ceil(props.systemDiskSpace.capacity * 100) }}
/>
</small>
</div>
Expand Down

0 comments on commit 752d3b2

Please sign in to comment.