Github user aledsage commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/1043#discussion_r45330844
--- Diff:
core/src/main/java/org/apache/brooklyn/util/core/task/ScheduledTask.java ---
@@ -121,13 +145,17 @@ public ScheduledTask maxIterations(int val) {
protected String getActiveTaskStatusString(int verbosity) {
StringBuilder rv = new StringBuilder("Scheduler");
- if (runCount>0) rv.append(", iteration "+(runCount+1));
- if (recentRun!=null) rv.append(", last run "+
- Duration.sinceUtc(recentRun.getStartTimeUtc())+" ms ago");
+ if (runCount > 0) {
+ rv.append(", iteration ").append(runCount + 1);
+ }
+ if (recentRun != null) {
+ Duration start =
Duration.sinceUtc(recentRun.getStartTimeUtc());
+ rv.append(", last run ").append(start).append(" ms ago");
--- End diff --
The toString of the duration will include the units, so remove the "ms"
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---