Skip to content
Snippets Groups Projects
Commit b0c2ebd2 authored by Edileuton Henrique de Oliveira's avatar Edileuton Henrique de Oliveira
Browse files

agent: Fix agent scheduler

parent 1c35e422
No related branches found
No related tags found
1 merge request!14Add Uninstall and Version Options
...@@ -86,7 +86,7 @@ function checkUpdate() ...@@ -86,7 +86,7 @@ function checkUpdate()
function schedule() function schedule()
{ {
if test -f "${CONFDIR}/pointInfo"; then if test -f "${CONFDIR}/pointInfo"; then
MIN=$(( 10#$(grep idpoint ${CONFDIR}/pointInfo | awk -F'=' '{print $2}' | sed "s/[^0-9]//g") % 60 )) MIN=$(( 10#$(grep idponto ${CONFDIR}/pointInfo | awk -F'=' '{print $2}' | sed "s/[^0-9]//g") % 60 ))
else else
MIN=$(( $RANDOM % 60 )) MIN=$(( $RANDOM % 60 ))
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment