[tor-commits] [metrics-lib/master] Replace while with for loops.