There is provided a method that includes (a) detecting a partial discharge on a power line that carries a power signal, (b) measuring a characteristic of the partial discharge, thus yielding a measured characteristic, (c) determining that the measured characteristic satisfies a measurement criterion, thus yielding a qualified partial discharge, (d) incrementing a count of cycles of the power signal that contain qualified partial discharges, (e) calculating, for a plurality of cycles of the power signal, based on the count, a percentage of the plurality of cycles that contain qualified partial discharges, and (f) utilizing the percentage in a subsequent operation. There is also provided a system that performs the method, and a storage device that contains instructions for a processor to perform the method.