3
0
mirror of https://github.com/rvalitov/zabbix-php-fpm.git synced 2023-11-05 03:30:27 +01:00

[add] time execution print

This commit is contained in:
Ramil Valitov 2020-07-07 07:06:56 +03:00
parent 22c3a06523
commit 3c97963d64
No known key found for this signature in database
GPG Key ID: 2AB186DABDFE1914

View File

@ -338,12 +338,12 @@ function CheckExecutionTime() {
ELAPSED_TIME=$(echo "$CURRENT_TIME - $START_TIME" | $S_BC) ELAPSED_TIME=$(echo "$CURRENT_TIME - $START_TIME" | $S_BC)
if [[ $ELAPSED_TIME -lt $MAX_EXECUTION_TIME ]]; then if [[ $ELAPSED_TIME -lt $MAX_EXECUTION_TIME ]]; then
#All good, we can continue #All good, we can continue
PrintDebug "Check execution time OK" PrintDebug "Check execution time OK, elapsed $ELAPSED_TIME"
return 1 return 1
fi fi
#We need to save our state and exit #We need to save our state and exit
PrintDebug "Check execution time: stop required" PrintDebug "Check execution time: stop required, elapsed $ELAPSED_TIME"
SavePrintResults SavePrintResults