But in get_dpinger_status() the loss percentage is returned from dpinger and then is compared to losslow to determine if the gateway state should be marked "loss".
For example, with the default low/high 10/20, if the loss goes above 20% then there will be a real alarm that results in gateway failover. When the loss average drops below 20% dpinger will "unalarm" and gateway failback should happen. However the gateways status/widget will show gateway "loss" if the current loss is above 10%.