Fix a bug in refresh function in RRD plugin.

Change-Id: I8fb164042c1f16fd9d76cb644b6cac39df1285d0