Closed philippemilink closed 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.
online
0
false
3
The concerned URL is http://localhost:27272/munin/status.
Perfect, thanks!
Since status
online
is coded as0
,0
was evaluated asfalse
and thus the fallback value3
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.