Skip to content

Commit

Permalink
Fix convert to int
Browse files Browse the repository at this point in the history
  • Loading branch information
ellinge committed Feb 10, 2023
1 parent f6baa02 commit 570fe2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Geta.NotFoundHandler/Core/Suggestions/RequestLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private void LogRequests(ConcurrentQueue<LogEvent> logEvents)
var threshold = _configuration.ThreshHold;
var start = logEvents.First().Requested;
var end = logEvents.Last().Requested;
var diff = (end - start).TotalSeconds;
var diff = (int)Math.Floor((end - start).TotalSeconds);

if ((diff != 0 && bufferSize / diff <= threshold)
|| bufferSize == 0)
Expand Down

0 comments on commit 570fe2b

Please sign in to comment.