X-Git-Url: http://pilppa.org/gitweb/?p=libplp.git;a=blobdiff_plain;f=src%2FStoreCache.cc;h=3506292c36a01fabb7d3f4ce1cc74f35ed6b74b2;hp=6e19690456d4ebb5646eb2f640035fa2e86d5a4d;hb=167c760cfc2596e9a8e7535249faede7b7239c25;hpb=a8f0802c22beeb4b9b3418c11069082e02fa30ce diff --git a/src/StoreCache.cc b/src/StoreCache.cc index 6e19690..3506292 100644 --- a/src/StoreCache.cc +++ b/src/StoreCache.cc @@ -148,6 +148,7 @@ DataRange *StoreCache::get_mean(EnumSummaryPeriod period_type_param) { cur_data = NULL; res_data = NULL; cnt = 0; + val_cnt = 0; while(cur_date->before(max_date)) { if (period_type_param == PERIOD_YEARLY) { store = new StoreCache(device_id, cur_date);