fix build
This commit is contained in:
@@ -77,8 +77,8 @@ public class FileStatisticsService : IHostedService
|
|||||||
_metrics.SetGaugeTo(MetricsAPI.GaugeFilesUniquePastDay, 0);
|
_metrics.SetGaugeTo(MetricsAPI.GaugeFilesUniquePastDay, 0);
|
||||||
_metrics.SetGaugeTo(MetricsAPI.GaugeFilesUniquePastDaySize, 0);
|
_metrics.SetGaugeTo(MetricsAPI.GaugeFilesUniquePastDaySize, 0);
|
||||||
|
|
||||||
var now = DateTime.UtcNow;
|
var now = DateTime.UtcNow;
|
||||||
DateTime midnight = new(now.Date, new(0, 0, 0));
|
DateTime midnight = new(new DateOnly(now.Date.Year, now.Date.Month, now.Date.Day), new(0, 0, 0));
|
||||||
var span = midnight.AddDays(1) - now;
|
var span = midnight.AddDays(1) - now;
|
||||||
|
|
||||||
await Task.Delay(span, _resetCancellationTokenSource.Token).ConfigureAwait(false);
|
await Task.Delay(span, _resetCancellationTokenSource.Token).ConfigureAwait(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user