Commit da4e075e authored by Andre Freyssinet's avatar Andre Freyssinet

Logging enhancements.

parent a3fe94c3
......@@ -76,7 +76,7 @@ public final class AverageCPUTask extends TimerTask {
cpuTime[idx%nb] = ManagementFactory.getThreadMXBean().getThreadCpuTime(id);
// Computes the CPU time used during last minute
average = (int) ((cpuTime[idx%nb] - cpuTime[(idx+1)%nb]) / ((60L *1000000000L) / 100L));
logger.log(BasicLevel.INFO,
logger.log(BasicLevel.DEBUG,
"AverageCPUTask: " + name + " CPU Time: " + cpuTime[idx%nb] + "ns -> " + average);
idx += 1;
} catch (Throwable t) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment