mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-11 04:57:22 +01:00
fix build
This commit is contained in:
parent
4f515edd02
commit
2e279f486a
1 changed files with 2 additions and 2 deletions
|
|
@ -77,8 +77,8 @@ public class FileStatisticsService : IHostedService
|
|||
_metrics.SetGaugeTo(MetricsAPI.GaugeFilesUniquePastDay, 0);
|
||||
_metrics.SetGaugeTo(MetricsAPI.GaugeFilesUniquePastDaySize, 0);
|
||||
|
||||
var now = DateTime.UtcNow;
|
||||
DateTime midnight = new(now.Date, new(0, 0, 0));
|
||||
var now = DateTime.UtcNow;
|
||||
DateTime midnight = new(new DateOnly(now.Date.Year, now.Date.Month, now.Date.Day), 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