mirror of
https://gitee.com/arthas/arthas.git
synced 2024-12-02 04:08:34 +08:00
use System#currentTimeMillis instead of new Date().getTime() (#1975)
This commit is contained in:
parent
72b1c7401e
commit
172f4397b3
@ -208,7 +208,7 @@ public class DashboardCommand extends AnnotatedCommand {
|
||||
runtimeInfo.setSystemLoadAverage(ManagementFactory.getOperatingSystemMXBean().getSystemLoadAverage());
|
||||
runtimeInfo.setProcessors(Runtime.getRuntime().availableProcessors());
|
||||
runtimeInfo.setUptime(ManagementFactory.getRuntimeMXBean().getUptime() / 1000);
|
||||
runtimeInfo.setTimestamp(new Date().getTime());
|
||||
runtimeInfo.setTimestamp(System.currentTimeMillis());
|
||||
dashboardModel.setRuntimeInfo(runtimeInfo);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user