diff options
author | PA4WDH | 2024-07-28 10:59:22 +0200 |
---|---|---|
committer | PA4WDH | 2024-07-28 10:59:22 +0200 |
commit | 56c6991c78e822086ac71932f0215e9deb1121ed (patch) | |
tree | c4c0c246be4e5a851fc9fd32a908872669b41f48 | |
parent | Fix more typos (diff) | |
download | cputemp2maxfreq-56c6991c78e822086ac71932f0215e9deb1121ed.tar.gz cputemp2maxfreq-56c6991c78e822086ac71932f0215e9deb1121ed.tar.bz2 cputemp2maxfreq-56c6991c78e822086ac71932f0215e9deb1121ed.zip |
FLush after writes to CSV file
-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 |