zestedesavoir / zmarkdown

Live demo: https://zestedesavoir.github.io/zmarkdown/
MIT License
224 stars 52 forks source link

[zmarkdown] Fix getting processus status in Munin controller #501

Closed philippemilink closed 8 months ago

philippemilink commented 8 months ago

Since status online is coded as 0, 0 was evaluated as false and thus the fallback value 3 was taken. Now, we use a ternary operator to test if the status is in the dictionnary to map to a number.

The concerned URL is http://localhost:27272/munin/status.

StaloneLab commented 8 months ago

Perfect, thanks!