- cosmetics

This commit is contained in:
zolliker
2011-08-29 14:39:15 +00:00
parent 2469129270
commit 1ce9ab0e0a

View File

@ -327,6 +327,9 @@ static int LogReader(SConnection * pCon, SicsInterp * pSics, void *pData,
return 0; return 0;
} }
nows[0] = LoggerGetLastLife(NULL); nows[0] = LoggerGetLastLife(NULL);
if (nows[0] == 0) {
nows[0] = LoggerGetLastLife(dirs[0]);
}
if (dirs[1] == NULL) { if (dirs[1] == NULL) {
dirs[1] = IFindOption(pSICSOptions, "LoggerDir2"); dirs[1] = IFindOption(pSICSOptions, "LoggerDir2");
nows[1] = LoggerGetLastLife(dirs[1]); nows[1] = LoggerGetLastLife(dirs[1]);
@ -341,7 +344,10 @@ static int LogReader(SConnection * pCon, SicsInterp * pSics, void *pData,
*colon = '\0'; *colon = '\0';
} }
if (ndirs == 0) { if (ndirs == 0) {
nows[0] = LoggerGetLastLife(NULL); nows[0] = LoggerGetLastLife(NULL); /* get from internal variable instead of file */
if (nows[0] == 0) { // internal value not available
nows[0] = LoggerGetLastLife(dirPath);
}
} else { } else {
nows[ndirs] = LoggerGetLastLife(dirPath); nows[ndirs] = LoggerGetLastLife(dirPath);
} }