Skip to content

Commit fb752a4

Browse files
[rsyslog.j2] fix typo in VAR_LOG_SIZE_KB (#9954)
This issue causes negative threshold value and thus deleting log files even when there is enough space. This issue causes negative threshold value and thus deleting log files even when there is enough space. - Why I did it To fix an issue when log files get deleted even if there is enough space. - How I did it Fixed an typo. - How to verify it Run the portion of the script that calculates threshold, see that the threshold is calculated correctly. Signed-off-by: Stepan Blyschak <[email protected]>
1 parent f136c53 commit fb752a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files/image_config/logrotate/rsyslog.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
# should be disabled, just in case they get created and rotated
5858
RESERVED_SPACE_KB=4096
5959

60-
VARL_LOG_SIZE_KB={{var_log_kb}}
60+
VAR_LOG_SIZE_KB={{var_log_kb}}
6161

6262
# Limit usable space to 90% of the partition minus the reserved space for other logs
6363
USABLE_SPACE_KB=$(( (VAR_LOG_SIZE_KB * 90 / 100) - RESERVED_SPACE_KB))

0 commit comments

Comments
 (0)