From b80926797863c5a36417eb44a34483bb93610b79 Mon Sep 17 00:00:00 2001 From: PA4WDH Date: Sat, 27 May 2023 11:20:22 +0200 Subject: Add feature to use unixtime timestamps in logs and CSV --- cputemp2maxfreq.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cputemp2maxfreq.c') 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_tempVALID_TEMP_MAX)) { -- cgit v1.2.3