[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 <stepanb@nvidia.com>
This commit is contained in:
parent
a0bb7a0485
commit
e5e1b70966
@ -57,7 +57,7 @@
|
|||||||
# should be disabled, just in case they get created and rotated
|
# should be disabled, just in case they get created and rotated
|
||||||
RESERVED_SPACE_KB=4096
|
RESERVED_SPACE_KB=4096
|
||||||
|
|
||||||
VARL_LOG_SIZE_KB={{var_log_kb}}
|
VAR_LOG_SIZE_KB={{var_log_kb}}
|
||||||
|
|
||||||
# Limit usable space to 90% of the partition minus the reserved space for other logs
|
# Limit usable space to 90% of the partition minus the reserved space for other logs
|
||||||
USABLE_SPACE_KB=$(( (VAR_LOG_SIZE_KB * 90 / 100) - RESERVED_SPACE_KB))
|
USABLE_SPACE_KB=$(( (VAR_LOG_SIZE_KB * 90 / 100) - RESERVED_SPACE_KB))
|
||||||
|
Loading…
Reference in New Issue
Block a user