Skip to content

Commit

Permalink
fix larger 100 percent bug refs Icinga#32 Icinga#24
Browse files Browse the repository at this point in the history
  • Loading branch information
moreamazingnick authored Mar 28, 2022
1 parent e86d22b commit 41654d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema/mysql/get_sla_ok_percent.sql
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ BEGIN
RETURN NULL;
END IF;

SELECT CASE WHEN @last_state IS NULL THEN NULL ELSE sla_ok_percent END INTO result FROM (
SELECT CASE WHEN @last_state IS NULL THEN NULL ELSE CAST(sla_ok_seconds / total_time * 100 AS DECIMAL(7, 4)) END INTO result FROM (
SELECT
@sla_ok_seconds := SUM(
CASE
Expand Down

0 comments on commit 41654d7

Please sign in to comment.