diff options
author | Kepi <kepi@igloonet.cz> | 2020-07-02 23:47:13 +0300 |
---|---|---|
committer | Kepi <kepi@igloonet.cz> | 2020-07-03 00:42:28 +0300 |
commit | f94817f66f4344e9fee676480bf4e04167ebc52c (patch) | |
tree | c44d2f1c7e6f0ba9d8dcf17326278d30bef3ca18 /include/functions | |
parent | 1da058d6defcbfa4729b99526fdafcd1ae5295ce (diff) |
Command line option for slow test threshold
IMHO it should be OK to run long tests if we count with it.
Example:
lynis audit system --slow-warning 300
Will warn when test takes longer than 300 seconds, instead of default 10.
Diffstat (limited to 'include/functions')
-rw-r--r-- | include/functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions b/include/functions index 4ff5b43a..e0f75a64 100644 --- a/include/functions +++ b/include/functions @@ -2586,7 +2586,7 @@ CURRENT_TS=$(GetTimestamp) if [ ${PREVIOUS_TS} -gt 0 ]; then SLOW_TEST=0 - TIME_THRESHOLD=10 # seconds + TIME_THRESHOLD=$SLOW_TEST_THRESHOLD # seconds # Calculate timing and determine if we use seconds or nanoseconds (more precise) TIME_DIFF=$((CURRENT_TS - PREVIOUS_TS)) |