Skip to content

Commit 31246d1

Browse files
authored
fix(warehouses/accelreator): Calculate MTBF in mins (#140)
### Summary Other models have columns calculated in minutes so be consistency. They can be rescaled in the BI tool if needed. <!--- Describe the change below, including rationale and design decisions --> Fixes #xxxx. <!-- and fix #xxxx or close #xxxx xor resolves #xxxx. One line per issue fixed. --> <!-- alternative *There is no associated issue.* -->
1 parent 71bdf73 commit 31246d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

warehouses/accelerator/transform/accelerator/models/operations/mean_time_between_failure.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ mean_time_between_failures as (
5050

5151
any_value(cycle_name) as cycle_name,
5252
equipment,
53-
sum(uptime_mins)/count(fault_occurred_at)/60. as mtbf_hours
53+
sum(uptime_mins)/count(fault_occurred_at) as mtbf_mins
5454

5555
from uptime_col
5656
where cycle_name is not null

0 commit comments

Comments
 (0)