Skip to content

Commit

Permalink
Merge pull request #179 from lkxyyjx/fix-rolling-flie-size
Browse files Browse the repository at this point in the history
Fix file rolling incorrectly in case
  • Loading branch information
neuecc authored Sep 6, 2024
2 parents 05048db + 7200dc8 commit a061bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZLogger/Providers/RollingFilestream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public RollingFileStream(Func<DateTimeOffset, int, string> fileNameSelector, Rol
{
this.fileNameSelector = fileNameSelector;
this.rollInterval = rollInterval;
this.rollSizeInBytes = rollSizeKB * 1024;
this.rollSizeInBytes = (long)rollSizeKB * 1024;
this.timeProvider = timeProvider;
this.fileShared = fileShared;

Expand Down

0 comments on commit a061bb9

Please sign in to comment.