diff --git a/feature/motheure-simple/source/loop.php b/feature/motheure-simple/source/loop.php index 72bedc1..acd6983 100644 --- a/feature/motheure-simple/source/loop.php +++ b/feature/motheure-simple/source/loop.php @@ -104,9 +104,7 @@ /* [2] Main loop =========================================================*/ /* (1) Log action to default log file */ - $f_data->fwrite( json_encode([ - floor( $stop_ts - $start_ts ) - ]).PHP_EOL ); + $f_data->fwrite( "[" . floor( $stop_ts - $start_ts ) ."]\n" ); slog("Motor stop", 'motheure-simple:loop', 'motheure'); /* (2) Return status */