[PM-QA PATCH 1/2] functions: fix loop increment in save_frequencies()