- minor improvements and bug fixes
This commit is contained in:
2
logger.c
2
logger.c
@ -299,7 +299,7 @@ int LoggerWrite(Logger * log, time_t now, int period, char *value)
|
||||
if (now > omitCheck + 5) { /* check for omitted values only every 5 seconds */
|
||||
for (p = list; p != NULL; p = p->next) {
|
||||
if (p->omitTime > 0 && now > p->omitTime + p->period) {
|
||||
snprintf(buf, sizeof buf, "%g", p->omitValue);
|
||||
snprintf(buf, sizeof buf, "%.7g", p->omitValue);
|
||||
LoggerWrite0(p, p->omitTime, p->period, buf);
|
||||
p->omitTime = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user