@cryptotaxi247 / netdata-1 / commits / 0de5c96d4

fflush() earlier

Costa Tsaousis (ktsaou) committed May 11, 2014 at 18:16 UTC 0de5c96d4636f0118a2f0048d5b84d48a8009e20
1 file changed +1 -2
apps_plugin.c
+1 -2
@@ -1191,7 +1191,7 @@ int main(int argc, char **argv)
1191 }
1192
1193 if(debug) fprintf(stderr, "Done Loop No %llu\n", counter);
1194 - // if(counter == 1000) exit(0);
1194 + fflush(NULL);
1195
1196 gettimeofday(&now, NULL);
1197
@@ -1203,7 +1203,6 @@ int main(int argc, char **argv)
1203 if(usec < (update_every * 1000000ULL / 2)) susec = (update_every * 1000000ULL) - usec;
1204 else susec = update_every * 1000000ULL / 2;
1205
1206 - fflush(NULL);
1206 usleep(susec);
1207
1208 bcopy(&now, &last, sizeof(struct timeval));