Skip to content
Snippets Groups Projects
Commit 904be91c authored by 潇洒's avatar 潇洒
Browse files

use cpu

parent 0266fcb0
No related branches found
No related tags found
No related merge requests found
......@@ -45,8 +45,8 @@ public class CallbackServiceImpl implements CallbackService {
private String generateStatusMessage() {
try {
List<String> cpuLoadList = getProcessCpuLoad().stream().map(Object::toString).collect(Collectors.toList());
//String cpuLoadString = String.join(",", cpuLoadList);
return "cpu=" + cpuLoadList[0] ;
String cpuLoadString = String.join(",", cpuLoadList);
return "cpu=" + cpuLoadString;
}
catch(Exception ex) {
return "error";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment