storagenode: estimation usage_at_rest

Change-Id: I0910ee19a21fdb1763b8cfacd0d56b7fb6a7039c
This commit is contained in:
Qweder93 2020-07-28 11:30:18 +03:00
parent b4c9badab1
commit 5ef4d756a2

View File

@ -274,7 +274,7 @@ export default class EstimationArea extends Vue {
private get currentDiskSpace(): number { private get currentDiskSpace(): number {
if (!this.$store.state.node.storageChartData) return 0; if (!this.$store.state.node.storageChartData) return 0;
return this.$store.state.node.storageChartData.map(data => data.atRestTotal).reduce((previous, current) => previous + current, 0); return this.$store.state.node.storageChartData.map(data => data.atRestTotal / 720).reduce((previous, current) => previous + current, 0);
} }
/** /**