Skip to content

Commit 662b478

Browse files
committed
Replace some profiler.getDuration with profiler.getDurationInMillis after commit 5557ad5
1 parent 614ee49 commit 662b478

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎framework/cluster/src/com/cloud/cluster/ClusterManagerImpl.java‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ protected void runInContext() {
572572
} finally {
573573
profiler.stop();
574574

575-
if (profiler.getDuration() >= HeartbeatInterval.value()) {
575+
if (profiler.getDurationInMillis() >= HeartbeatInterval.value()) {
576576
if (s_logger.isDebugEnabled()) {
577577
s_logger.debug("Management server heartbeat takes too long to finish. profiler: " + profiler.toString() + ", profilerHeartbeatUpdate: " +
578578
profilerHeartbeatUpdate.toString() + ", profilerPeerScan: " + profilerPeerScan.toString());
@@ -665,12 +665,12 @@ protected void runInContext() {
665665
notifyNodeJoined(msg.getNodes());
666666

667667
profiler.stop();
668-
if (profiler.getDuration() > 1000) {
668+
if (profiler.getDurationInMillis() > 1000) {
669669
if (s_logger.isDebugEnabled()) {
670-
s_logger.debug("Notifying management server join event took " + profiler.getDuration() + " ms");
670+
s_logger.debug("Notifying management server join event took " + profiler.getDurationInMillis() + " ms");
671671
}
672672
} else {
673-
s_logger.warn("Notifying management server join event took " + profiler.getDuration() + " ms");
673+
s_logger.warn("Notifying management server join event took " + profiler.getDurationInMillis() + " ms");
674674
}
675675
}
676676
break;
@@ -683,12 +683,12 @@ protected void runInContext() {
683683
notifyNodeLeft(msg.getNodes());
684684

685685
profiler.stop();
686-
if (profiler.getDuration() > 1000) {
686+
if (profiler.getDurationInMillis() > 1000) {
687687
if (s_logger.isDebugEnabled()) {
688-
s_logger.debug("Notifying management server leave event took " + profiler.getDuration() + " ms");
688+
s_logger.debug("Notifying management server leave event took " + profiler.getDurationInMillis() + " ms");
689689
}
690690
} else {
691-
s_logger.warn("Notifying management server leave event took " + profiler.getDuration() + " ms");
691+
s_logger.warn("Notifying management server leave event took " + profiler.getDurationInMillis() + " ms");
692692
}
693693
}
694694
break;
@@ -927,7 +927,7 @@ private void peerScan() throws ActiveFencingException {
927927

928928
profiler.stop();
929929

930-
if (profiler.getDuration() >= HeartbeatInterval.value()) {
930+
if (profiler.getDurationInMillis() >= HeartbeatInterval.value()) {
931931
if (s_logger.isDebugEnabled()) {
932932
s_logger.debug("Peer scan takes too long to finish. profiler: " + profiler.toString() + ", profilerQueryActiveList: " +
933933
profilerQueryActiveList.toString() + ", profilerSyncClusterInfo: " + profilerSyncClusterInfo.toString() + ", profilerInvalidatedNodeList: " +

0 commit comments

Comments
 (0)