File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -447,7 +447,7 @@ function initGraphs() {
447
447
[% IF empty_services || (service_stats.total-service_stats.pending) == 0 %]
448
448
[% service_health = 0 %]
449
449
[% ELSE %]
450
- [% service_health = ( service_stats.ok + service_stats.warning + service_stats.unknown) / (( service_stats.total-service_stats.pending) ) * 100 %]
450
+ [% service_health = service_stats.ok / (service_stats.total-service_stats.pending) * 100 %]
451
451
[% END %]
452
452
var services = bb.generate({
453
453
data: {
Original file line number Diff line number Diff line change 102
102
[% IF empty || (service_stats.total-service_stats.pending) == 0 %]
103
103
[% service_health = 0 %]
104
104
[% ELSE %]
105
- [% service_health = ( service_stats.ok + service_stats.warning + service_stats.unknown) / (( service_stats.total-service_stats.pending) ) * 100 %]
105
+ [% service_health = service_stats.ok / (service_stats.total-service_stats.pending) * 100 %]
106
106
[% END %]
107
107
[% service_health = sprintf('%i', service_health) %]
108
108
[% service_perc = service_health %]
You can’t perform that action at this time.
0 commit comments