mirror of
https://github.com/beestat/app.git
synced 2025-07-08 10:44:35 -04:00
Fixed RDD generating as 0 when there's 0 runtime.
This commit is contained in:
parent
7a62daec40
commit
a2dba76eca
@ -951,8 +951,10 @@ class profile extends cora\api {
|
||||
$system_type_heat !== null &&
|
||||
$system_type_heat !== 'none'
|
||||
) {
|
||||
if($profile['runtime']['heat_1'] > 0) {
|
||||
$profile['runtime_per_degree_day']['heat_1'] = round($profile['runtime']['heat_1'] / $profile['degree_days']['heat'], 2);
|
||||
if($heat_stages === 2) {
|
||||
}
|
||||
if($profile['runtime']['heat_2'] > 0) {
|
||||
$profile['runtime_per_degree_day']['heat_2'] = round($profile['runtime']['heat_2'] / $profile['degree_days']['heat'], 2);
|
||||
}
|
||||
}
|
||||
@ -966,8 +968,10 @@ class profile extends cora\api {
|
||||
$system_type_cool !== null &&
|
||||
$system_type_cool !== 'none'
|
||||
) {
|
||||
if($profile['runtime']['cool_1'] > 0) {
|
||||
$profile['runtime_per_degree_day']['cool_1'] = round($profile['runtime']['cool_1'] / $profile['degree_days']['cool'], 2);
|
||||
if($cool_stages === 2) {
|
||||
}
|
||||
if($profile['runtime']['cool_2'] > 0) {
|
||||
$profile['runtime_per_degree_day']['cool_2'] = round($profile['runtime']['cool_2'] / $profile['degree_days']['cool'], 2);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user