diff options
author | Can Güney Aksakalli <cgaksakalli@gmail.com> | 2022-01-12 22:01:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-13 00:01:58 +0300 |
commit | 988f03ee05c66683a1f9687f828df157ae63c39b (patch) | |
tree | 72cd3e96933db4a50cf475509556a4e4a09bc9bc | |
parent | 841f908f85ab9d8f166488551c70d00ad5f521f9 (diff) |
fixing memory & cpu display for Processes table (#123)
-rw-r--r-- | lib/monitor/proc.js | 10 | ||||
-rw-r--r-- | package-lock.json | 20 | ||||
-rw-r--r-- | package.json | 2 |
3 files changed, 17 insertions, 15 deletions
diff --git a/lib/monitor/proc.js b/lib/monitor/proc.js index 2823638..415d3f5 100644 --- a/lib/monitor/proc.js +++ b/lib/monitor/proc.js @@ -5,14 +5,14 @@ var colors = utils.colors; var pars = { p: 'pid', - c: 'pcpu', - m: 'pmem', + c: 'cpu', + m: 'mem', }; function Proc(table) { this.table = table; - this.pSort = 'pcpu'; + this.pSort = pars.c; this.reIndex = false; this.reverse = false; @@ -58,8 +58,8 @@ Proc.prototype.updateData = function(data) { headers[ { pid: 0, - pcpu: 2, - pmem: 3, + cpu: 2, + mem: 3, }[this.pSort] ] += this.reverse ? '▲' : '▼'; diff --git a/package-lock.json b/package-lock.json index 4e57aab..88ccf0c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,12 +5,13 @@ "requires": true, "packages": { "": { + "name": "gtop", "version": "1.1.2", "license": "MIT", "dependencies": { "blessed": "^0.1.81", "blessed-contrib": "^4.10.1", - "systeminformation": "^5.9.11" + "systeminformation": "^5.10.0" }, "bin": { "gtop": "bin/gtop" @@ -616,9 +617,9 @@ } }, "node_modules/systeminformation": { - "version": "5.9.11", - "resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.9.11.tgz", - "integrity": "sha512-lvNC6ZpIyVJAlYeug/QH0N6L59iX1/YqxdXjNbemGlhI43FSd4fHFr+DyIlpKjSlzawR/1W3YwrTYuUNai1N5A==", + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.10.0.tgz", + "integrity": "sha512-9m05qqR8sQzWpW1q1/BXUiz1bnUXh7NkK/+w0MoSX7+dURYLj6e4zAkuBBWyTCKnhJjRsQXpoXiJCnakpZdJVA==", "os": [ "darwin", "linux", @@ -626,13 +627,14 @@ "freebsd", "openbsd", "netbsd", - "sunos" + "sunos", + "android" ], "bin": { "systeminformation": "lib/cli.js" }, "engines": { - "node": ">=4.0.0" + "node": ">=8.0.0" }, "funding": { "type": "Buy me a coffee", @@ -1150,9 +1152,9 @@ } }, "systeminformation": { - "version": "5.9.11", - "resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.9.11.tgz", - "integrity": "sha512-lvNC6ZpIyVJAlYeug/QH0N6L59iX1/YqxdXjNbemGlhI43FSd4fHFr+DyIlpKjSlzawR/1W3YwrTYuUNai1N5A==" + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.10.0.tgz", + "integrity": "sha512-9m05qqR8sQzWpW1q1/BXUiz1bnUXh7NkK/+w0MoSX7+dURYLj6e4zAkuBBWyTCKnhJjRsQXpoXiJCnakpZdJVA==" }, "term-canvas": { "version": "0.0.5", diff --git a/package.json b/package.json index 9d84776..bd345e7 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "dependencies": { "blessed": "^0.1.81", "blessed-contrib": "^4.10.1", - "systeminformation": "^5.9.11" + "systeminformation": "^5.10.0" }, "engines": { "node": ">=4.0.0" |