[tor-commits] [metrics-tasks/master] Revise calculation script following code review (thanks atagar) (#7241).