Skip to content

Commit 906e40c

Browse files
committed
[Fix #97] Flush standard out before sleeping in verbose mode.
2 parents f9f39cf + 9f646ae commit 906e40c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mbpfan.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ void mbpfan()
557557

558558
if(verbose) {
559559
printf("Sleeping for %d seconds\n", polling_interval);
560+
fflush(stdout);
560561

561562
if(daemonize) {
562563
syslog(LOG_INFO, "Sleeping for %d seconds", polling_interval);

0 commit comments

Comments
 (0)