update ammeter like we did in 1aed21b