diff --git a/CHANGELOG.md b/CHANGELOG.md index 90bc5c2cd..5feb40511 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,12 @@ +## 6.0.8 + +- fix: package-lock update + +## 6.0.7 + +- fix: ansis-node10 https://github.com/Unitech/pm2/commit/99d9224e940d119a1ad5b241b4fc4e0db7c830ed @webdiscus + ## 6.0.6 - refactor: replace chalk with smaller alternative by @webdiscus diff --git a/README.md b/README.md index e0117d577..83dd30445 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,6 @@ ![https://raw.githubusercontent.com/Unitech/pm2/master/pres/pm2-logo-2.png](https://raw.githubusercontent.com/Unitech/pm2/master/pres/pm2-logo-2.png) -
-
P(rocess) M(anager) 2
Runtime Edition

diff --git a/lib/API/UX/helpers.js b/lib/API/UX/helpers.js index 70d427d63..f3d1c732e 100644 --- a/lib/API/UX/helpers.js +++ b/lib/API/UX/helpers.js @@ -15,15 +15,15 @@ Helpers.bytesToSize = function(bytes, precision) { var terabyte = gigabyte * 1024 if ((bytes >= 0) && (bytes < kilobyte)) { - return bytes + 'b ' + return bytes + 'B ' } else if ((bytes >= kilobyte) && (bytes < megabyte)) { - return (bytes / kilobyte).toFixed(precision) + 'kb ' + return (bytes / kilobyte).toFixed(precision) + 'KiB ' } else if ((bytes >= megabyte) && (bytes < gigabyte)) { - return (bytes / megabyte).toFixed(precision) + 'mb ' + return (bytes / megabyte).toFixed(precision) + 'MiB ' } else if ((bytes >= gigabyte) && (bytes < terabyte)) { - return (bytes / gigabyte).toFixed(precision) + 'gb ' + return (bytes / gigabyte).toFixed(precision) + 'GiB ' } else if (bytes >= terabyte) { - return (bytes / terabyte).toFixed(precision) + 'tb ' + return (bytes / terabyte).toFixed(precision) + 'TiB ' } else { return bytes + 'b ' } diff --git a/lib/API/UX/pm2-ls.js b/lib/API/UX/pm2-ls.js index e5a460807..444c13dda 100644 --- a/lib/API/UX/pm2-ls.js +++ b/lib/API/UX/pm2-ls.js @@ -338,7 +338,7 @@ function containersListing(sys_infos) { var state = UxHelpers.colorStatus(c.state) if (stacked_docker) - docker_table.push([id, c.image, state, `${cpu}%`, `${mem}mb`]) + docker_table.push([id, c.image, state, `${cpu}%`, `${mem} MiB`]) else { docker_table.push([ id, @@ -346,7 +346,7 @@ function containersListing(sys_infos) { state, c.restartCount, `${cpu == 0 ? '0' : cpu}%`, - `${mem}mb`, + `${mem} MiB`, `${c.stats.netIO.rx}/${isNaN(c.stats.netIO.tx) == true ? '0.0' : c.stats.netIO.tx}`, `${c.stats.blockIO.r}/${c.stats.blockIO.w}` ]) diff --git a/package-lock.json b/package-lock.json index 40cb88f26..9242691fb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pm2", - "version": "6.0.6", + "version": "6.0.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pm2", - "version": "6.0.6", + "version": "6.0.8", "license": "AGPL-3.0", "dependencies": { "@pm2/agent": "~2.1.1", diff --git a/package.json b/package.json index ff22b3d39..c445afdff 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "pm2", "preferGlobal": true, - "version": "6.0.6", + "version": "6.0.8", "engines": { "node": ">=16.0.0" },