Skip to content

Commit

Permalink
web/storagenode: free space calculation for chart fix
Browse files Browse the repository at this point in the history
Change-Id: I4fb19b6ab8ba106dce4dfa49a03601c132ce66f0
  • Loading branch information
NikolaiYurchenko authored and stefanbenten committed Jun 3, 2020
1 parent c6310b3 commit 6b447a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/storagenode/src/app/components/DiskStatChart.vue
Expand Up @@ -54,13 +54,14 @@ export default class DiskStatChart extends Vue {
*/
public get chartData(): DiskStatChartData {
const diskSpace = this.$store.state.node.utilization.diskSpace;
const free = diskSpace.available - diskSpace.used - diskSpace.trash;
return new DiskStatChartData([
new DiskStatDataSet(
'',
['#D6D6D6', '#0059D0', '#8FA7C6'],
[
diskSpace.available,
free,
diskSpace.used,
diskSpace.trash,
],
Expand Down

0 comments on commit 6b447a4

Please sign in to comment.