aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--logger.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/logger.c b/logger.c
index 315c8c2..6b8c10b 100644
--- a/logger.c
+++ b/logger.c
@@ -107,6 +107,7 @@ void csvlog_init()
"\"CPU Temperature\","
"\"Target Temperature\","
"\"Scaling maximum frequency\"\n",config.csvfile);
+ fflush(config.csvfile);
} else {
DEBUG1_LOG("Appending to CSV file\n");
config.csvfile=fopen(config.csvlog,"a");
@@ -134,6 +135,7 @@ void csvlog_write()
}
fprintf(config.csvfile,"%s,\"%ld\",\"%ld\",\"%ld\",\"%ld\",\"%ld\",\"%ld\"\n",timestring,cpudata.min_freq,cpudata.max_freq,cpudata.cur_freq,cpudata.cur_temp/1000,config.max_temp/1000,cpudata.scale_max);
+ fflush(config.csvfile);
}
// Close the CSV file