mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
use System#currentTimeMillis instead of new Date().getTime() (#1975)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user