1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Minor profile debug fix

This commit is contained in:
Jon Ziebell 2023-11-17 17:00:28 -05:00
parent 5d6b977a60
commit d298259704

View File

@ -783,7 +783,7 @@ class profile extends cora\crud {
'outdoor_temperature' => $begin_runtime[$sample_type]['outdoor_temperature'], 'outdoor_temperature' => $begin_runtime[$sample_type]['outdoor_temperature'],
'delta' => $delta, 'delta' => $delta,
'duration' => $duration, 'duration' => $duration,
'delta_per_hour' => $delta / $duration * 3600, 'delta_per_hour' => $delta / $duration * 3600
]; ];
if($debug === true) { if($debug === true) {
@ -791,7 +791,7 @@ class profile extends cora\crud {
$sample + $sample +
[ [
'begin' => $begin_runtime[$sample_type]['timestamp'], 'begin' => $begin_runtime[$sample_type]['timestamp'],
'end' => $previous_runtime['timestamp'] 'end' => $end_runtime['timestamp']
] ]
); );
} }