This commit is contained in:
syuilo
2018-07-27 18:18:05 +09:00
parent 32117a573b
commit 6b19e54c23
3 changed files with 4 additions and 5 deletions

View File

@ -35,7 +35,7 @@ export default Vue.extend({
},
methods: {
onStats(stats) {
stats.mem.used = stats.mem.total - stats.mem.free;
stats.mem.free = stats.mem.total - stats.mem.used;
this.usage = stats.mem.used / stats.mem.total;
this.total = stats.mem.total;
this.used = stats.mem.used;