From: Doug M. <do...@hy...> - 2010-05-19 19:33:40
|
Hi, CpuPerc.format just does: String p = String.valueOf(val * 100.0); And then what would be a call to sprintf if we didn't still support jdk 1.4 So you could for example: double total = (cpu.getUser() + cpu.getSys() + cpu.getIdle()) * 100.0 |