number_of_installed_rpm_packages=len(number_of_installed_rpm_packages)-number_of_installed_rpm_packages.count("")# Differentiate empty line count
if'number_of_installed_rpm_packages'notinglobals():# Number of installed RPM packages is not updated on every loop. Getting number of installed RPM packages consumes very high CPU usage because of the "rpm -qa" command and there is no any other solution for getting this information with low CPU usage.