Commit 9def4210 authored by Stéphane Crozat's avatar Stéphane Crozat

Change indicateur exclu calculation

parent 3efe6b9b
......@@ -51,7 +51,8 @@ BEGIN
ELSIF nb_sub = 1 THEN
RETURN 100;
ELSE
RETURN ROUND(100 * (1 - (nb_sub / nb_api)));
RETURN ROUND(100 / nb_sub);
/** Old formula RETURN ROUND(100 * (1 - (nb_sub / nb_api))); **/
END IF;
END;
$$ LANGUAGE PLPGSQL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment