diff options
Diffstat (limited to 'logger.c')
-rw-r--r-- | logger.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |