<div dir="ltr"><div>Apparently the tasks.cfg MAXTIME option is not very tolerant of spacing:<br><br></div>   MAXTIME  10m    - with two spaces, is interpreted as 10 seconds<br>   MAXTIME 10m     - with one space, is interpreted as 600 seconds<br><div><br>I think the problem lies at line 276 in xymon-4.3.28/common/xymonlaunch.c:<br><br>                        tspec = p + strspn(p, "0123456789");<br>                        switch (*tspec) {<br>                          case 'm': curtask->maxruntime *= 60; break;   /* Minutes */<br>                          case 'h': curtask->maxruntime *= 3600; break; /* Hours */<br>                          case 'd': curtask->maxruntime *= 86400; break;        /* Days */<br>                        }<br><br></div><div>The pointer p is pointing to the first character after "MAXTIME ".  That's fine as long as it points to a numeric string.  If it doesn't point to a string of digits, tspec doesn't end up pointing to the multiplier, so MAXTIME is handled as seconds.<br><br></div><div>Adding a space to the strspn string should fix it:<br><br>       tspec = p + strspn(p, " 0123456789");<br><br></div><div>Similarly, at line 254, for the INTERVAL option.<br><br></div><div>Ralph Mitchell<br><br><br></div></div>