Skip to content

Commit

Permalink
Merge pull request #3726 from soyuka/fix-list
Browse files Browse the repository at this point in the history
Fix cpu value for modules
  • Loading branch information
wallet77 authored Jun 19, 2018
2 parents a39eb4f + d39a424 commit 0255c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/API/CliUx.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ UX.dispAsTable = function(list, commander) {
obj[key].push(l.pm2_env.restart_time ? l.pm2_env.restart_time : 0);

// CPU + Memory
obj[key].push(l.monit ? (l.monit.cpu + '%') : 'N/A', l.monit ? UX.bytesToSize(l.monit.memory, 3) : 'N/A' );
obj[key].push(l.monit ? (l.monit.cpu.toFixed(2) + '%') : 'N/A', l.monit ? UX.bytesToSize(l.monit.memory, 3) : 'N/A' );

// User
if (!stacked)
Expand Down

0 comments on commit 0255c5a

Please sign in to comment.