aboutsummaryrefslogtreecommitdiffstats
path: root/cputemp2maxfreq.c
diff options
context:
space:
mode:
authorPA4WDH2023-05-27 11:20:22 +0200
committerPA4WDH2023-05-27 11:20:22 +0200
commitb80926797863c5a36417eb44a34483bb93610b79 (patch)
tree1a5026e03db338b86671ffe8d556fb57cb3529f0 /cputemp2maxfreq.c
parentUse CPU Transition Latency as checkdelay when setting new scaling_max_freq (diff)
downloadcputemp2maxfreq-b80926797863c5a36417eb44a34483bb93610b79.tar.gz
cputemp2maxfreq-b80926797863c5a36417eb44a34483bb93610b79.tar.bz2
cputemp2maxfreq-b80926797863c5a36417eb44a34483bb93610b79.zip
Add feature to use unixtime timestamps in logs and CSV
Diffstat (limited to 'cputemp2maxfreq.c')
-rw-r--r--cputemp2maxfreq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cputemp2maxfreq.c b/cputemp2maxfreq.c
index 9600d13..887a406 100644
--- a/cputemp2maxfreq.c
+++ b/cputemp2maxfreq.c
@@ -28,6 +28,7 @@ struct s_config config={
"", // CSV logfile
0, // Don't overwrite CSV logfile
NULL, // File handler for CSV file
+ 0, // Don't use unix timestamps in log outputs
};
struct s_cpudata cpudata;
@@ -62,6 +63,7 @@ int main(int argc,char **argv)
config.logger("CSV Log file: %s",config.csvlog);
config.logger("Overwrite CSV log: %d",config.csvoverwrite);
}
+ config.logger("Use unix timestamps: %d",config.use_unixtime);
if ((config.max_temp<VALID_TEMP_MIN) || (config.max_temp>VALID_TEMP_MAX))
{