if (current == -1) {
error("Failed to read: \"%s\". Error: %s\n", f->name, strerror(errno));
fifo_read_error(f, buf);
- } else
+ } else {
while (total++ < f->width)
*b++ = ' ';
+ }
/* TODO Record timestamp read */
close(f->fd);
f->fd = -1;
timespecsub(&ti, &td, &tc);
debug("snooze YES\n");
snooze(&tc, cfg);
- } else
+ } else {
debug("snooze NO\n");
+ }
}
return EXIT_SUCCESS;