Fix a bug in refresh function in RRD plugin.

Change-Id: I4f679fae4d3ee2231e340bfc5f5a7af8ce8c2b10