aboutsummaryrefslogtreecommitdiff
path: root/spark-common/src/main/java/me/lucko
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2020-04-22 22:39:15 +0100
committerLuck <git@lucko.me>2020-04-22 22:39:15 +0100
commit88d39cfa0afd3b1388a5806396e9da7184abea49 (patch)
tree4bbd6631496c95cd4a7702d03a23a8f52d27d11f /spark-common/src/main/java/me/lucko
parent338a6ac61271c7c9af56e076866a5edf33e558cc (diff)
downloadspark-88d39cfa0afd3b1388a5806396e9da7184abea49.tar.gz
spark-88d39cfa0afd3b1388a5806396e9da7184abea49.tar.bz2
spark-88d39cfa0afd3b1388a5806396e9da7184abea49.zip
Don't include ms unit in GC average frequency
Diffstat (limited to 'spark-common/src/main/java/me/lucko')
-rw-r--r--spark-common/src/main/java/me/lucko/spark/common/command/modules/GcMonitoringModule.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/spark-common/src/main/java/me/lucko/spark/common/command/modules/GcMonitoringModule.java b/spark-common/src/main/java/me/lucko/spark/common/command/modules/GcMonitoringModule.java
index 6330797..ea1cc00 100644
--- a/spark-common/src/main/java/me/lucko/spark/common/command/modules/GcMonitoringModule.java
+++ b/spark-common/src/main/java/me/lucko/spark/common/command/modules/GcMonitoringModule.java
@@ -145,7 +145,7 @@ public class GcMonitoringModule implements CommandModule {
}
long second = millis / 1000;
- millis = millis % 1000;
+ //millis = millis % 1000;
long minute = second / 60;
second = second % 60;
@@ -156,9 +156,9 @@ public class GcMonitoringModule implements CommandModule {
if (second != 0) {
sb.append(second).append("s ");
}
- if (millis != 0) {
- sb.append(millis).append("ms");
- }
+ //if (millis != 0) {
+ // sb.append(millis).append("ms");
+ //}
return sb.toString().trim();
}