Change unit_of_measurement of sensor.openwrt_router_b_sent from B to GB

What about handling the fact that this value seem to be wrapping constantly?
image
Any hint on a template sensor that compensates for this?
I have tried to make something out of the examples in SNMP bandwidth monitor using statistics and a utility meter but not got it working