diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/workers/BackupMetricsCommand.java b/service/src/main/java/org/whispersystems/textsecuregcm/workers/BackupMetricsCommand.java index e80029f0b..c5ef322be 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/workers/BackupMetricsCommand.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/workers/BackupMetricsCommand.java @@ -101,7 +101,7 @@ public class BackupMetricsCommand extends AbstractCommandWithDependencies { } private Duration timeSince(Instant t) { - Duration between = Duration.between(clock.instant(), t); + final Duration between = Duration.between(t, clock.instant()); if (between.isNegative()) { return Duration.ZERO; }