[tor-commits] [sbws/master] Move function to check percentage to classmethod