From 7200dc8045375a17f61726ef2701ad7b2206407a Mon Sep 17 00:00:00 2001 From: lkxyyjx Date: Thu, 29 Aug 2024 23:41:47 +0800 Subject: [PATCH] Fix file rolling incorrectly in case --- src/ZLogger/Providers/RollingFilestream.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ZLogger/Providers/RollingFilestream.cs b/src/ZLogger/Providers/RollingFilestream.cs index a0e8de6a..a3865a8b 100644 --- a/src/ZLogger/Providers/RollingFilestream.cs +++ b/src/ZLogger/Providers/RollingFilestream.cs @@ -31,7 +31,7 @@ public RollingFileStream(Func fileNameSelector, Rol { this.fileNameSelector = fileNameSelector; this.rollInterval = rollInterval; - this.rollSizeInBytes = rollSizeKB * 1024; + this.rollSizeInBytes = (long)rollSizeKB * 1024; this.timeProvider = timeProvider; this.fileShared = fileShared;