summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/logging/filewriter.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/logging/filewriter.go b/modules/logging/filewriter.go
index e9c2dd8..4d30618 100644
--- a/modules/logging/filewriter.go
+++ b/modules/logging/filewriter.go
@@ -168,7 +168,7 @@ func (fw *FileWriter) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
if err != nil {
return d.Errf("parsing size: %v", err)
}
- fw.RollSizeMB = int(size) / 1024 / 1024
+ fw.RollSizeMB = int(size)/1024/1024 + 1
case "roll_keep":
var keepStr string