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:
parent
22c3a06523
commit
3c97963d64
@ -338,12 +338,12 @@ function CheckExecutionTime() {
|
||||
ELAPSED_TIME=$(echo "$CURRENT_TIME - $START_TIME" | $S_BC)
|
||||
if [[ $ELAPSED_TIME -lt $MAX_EXECUTION_TIME ]]; then
|
||||
#All good, we can continue
|
||||
PrintDebug "Check execution time OK"
|
||||
PrintDebug "Check execution time OK, elapsed $ELAPSED_TIME"
|
||||
return 1
|
||||
fi
|
||||
|
||||
#We need to save our state and exit
|
||||
PrintDebug "Check execution time: stop required"
|
||||
PrintDebug "Check execution time: stop required, elapsed $ELAPSED_TIME"
|
||||
|
||||
SavePrintResults
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user