parent
377b0399a0
commit
0921850a79
3 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue