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