[libvirt PATCH 2/6] util: virNetDevBandwidthUpdateRate: refactor