mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-19 21:18:05 +01:00
Fix calculation of backup staleness metric
This commit is contained in:
committed by
ravi-signal
parent
df188e6f15
commit
8c2f3c839f
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user