This commit is contained in:
MeiMei
2021-02-27 01:29:29 +09:00
committed by GitHub
parent 377b0399a0
commit 0921850a79
3 changed files with 6 additions and 6 deletions

View File

@@ -45,10 +45,10 @@ export default defineComponent({
},
methods: {
onStats(stats) {
this.usage = stats.mem.used / this.meta.mem.total;
this.usage = stats.mem.active / this.meta.mem.total;
this.total = this.meta.mem.total;
this.used = stats.mem.used;
this.free = this.meta.mem.total - stats.mem.used;
this.used = stats.mem.active;
this.free = this.meta.mem.total - stats.mem.active;
},
bytes
}