mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 07:36:47 +00:00
Fix credential age calculation
This commit is contained in:
1 parent
61ab765391
commit
159e1f13f0
1 file changed
+1
-1
+1
-1
@@ -142,7 +142,7 @@ public class SecureValueRecovery2Controller {
|
||||
.baseUnit("days")
|
||||
.tags(Tags.of(UserAgentTagUtil.getPlatformTag(userAgent), Tag.of("valid", Boolean.toString(info.valid()))))
|
||||
.register(Metrics.globalRegistry)
|
||||
.record(Duration.between(Instant.ofEpochMilli(info.timestamp()), Instant.now()).toDays()));
|
||||
.record(Duration.between(Instant.ofEpochSecond(info.timestamp()), Instant.now()).toDays()));
|
||||
|
||||
return new AuthCheckResponseV2(credentials.stream().collect(Collectors.toMap(
|
||||
ExternalServiceCredentialsSelector.CredentialInfo::token,
|
||||
|
||||
Reference in new issue
Block a user