Skip to content

Commit

Permalink
fix cpu usage cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Dec 22, 2018
1 parent e7a9c10 commit 5d38e75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon_files/redmatic/www/service.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if {[info exists cmd]} {
exit 0
}
if {$cmd == "cpu"} {
puts [exec top -b -n 1 | grep "% node-red$" | tr -s " " | cut -d " " -f7]
puts [exec top -b -n 1 | grep "% node-red$" | awk "\{print \$7\}"]
exit 0
}
}
Expand Down

0 comments on commit 5d38e75

Please sign in to comment.