diff options
Diffstat (limited to 'include/functions')
-rw-r--r-- | include/functions | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/functions b/include/functions index 8d5a5ef8..e0f75a64 100644 --- a/include/functions +++ b/include/functions @@ -1290,7 +1290,8 @@ if [ -n "${STATBINARY}" ]; then case ${OS} in - *BSD) + *BSD | "macOS") + # BSD and macOS have no --format, only short notation DATA=$(${STATBINARY} -f "%OLp" ${CHECKFILE}) ;; *) @@ -2585,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)) |