From fbb4af6ec994452660cd44f2ca5b007a5031ea5a Mon Sep 17 00:00:00 2001 From: zolliker Date: Tue, 19 Jun 2012 07:09:54 +0000 Subject: [PATCH] - allow sicscron to run with 0 sec interval --- sicscron.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sicscron.c b/sicscron.c index 62bc5af7..5697771c 100644 --- a/sicscron.c +++ b/sicscron.c @@ -96,7 +96,7 @@ static int CronTask(void *pData) } self->tNext += self->iInterval; if (now > self->tNext) - self->tNext = now + 1; + self->tNext = now; } /* printf("CronTask return: %d\n", self->iEnd > 0);*/ if(self->iEnd <= 0){ @@ -165,7 +165,7 @@ int MakeCron(SConnection * pCon, SicsInterp * pSics, void *pData, /* enough arguments? */ if (argc < 3) { - SCPrintf(pCon, eError, "ERROR: not enough arguments to %s", argv[0]); + SCPrintf(pCon, eError, "ERROR: usage: %s