mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-11 05:57:21 +01:00
Merge branch 'main' of https://github.com/Penumbra-Sync/server
This commit is contained in:
commit
1f26be7fab
1 changed files with 3 additions and 4 deletions
|
|
@ -77,10 +77,9 @@ public class FileStatisticsService : IHostedService
|
|||
_metrics.SetGaugeTo(MetricsAPI.GaugeFilesUniquePastDay, 0);
|
||||
_metrics.SetGaugeTo(MetricsAPI.GaugeFilesUniquePastDaySize, 0);
|
||||
|
||||
var now = DateTime.UtcNow;
|
||||
TimeOnly currentTime = new(now.Hour, now.Minute, now.Second);
|
||||
TimeOnly futureTime = new(0, 0, 0);
|
||||
var span = futureTime - currentTime;
|
||||
var now = DateTime.UtcNow;
|
||||
DateTime midnight = new(now.Date, new(0, 0, 0));
|
||||
var span = midnight.AddDays(1) - now;
|
||||
|
||||
await Task.Delay(span, _resetCancellationTokenSource.Token).ConfigureAwait(false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue