Skip to content

Commit

Permalink
better log output
Browse files Browse the repository at this point in the history
  • Loading branch information
wuan committed Jan 3, 2024
1 parent 7708a77 commit 3537686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/klimalogger/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl CheckMessage for SensorLogger {
let difference = now - date_time;

if difference.num_seconds() > 10 {
println!("high time offset for {}: {}", location, difference);
println!("*** high time offset for {}: {:.2} s", location, difference.num_milliseconds() as f32 / 1000.0);
}

let sensor_reading = SensorReading {
Expand Down

0 comments on commit 3537686

Please sign in to comment.