275c275,285 < if (set.withzeros) --- > /* if it's a smartzero we do our logic */ > if (set.smartzeros) { > /* if the round is 1, we add the zero in. otherwise if the modulus */ > /* of the round number and the smartzero value is 0 we then add the */ > /* zero delta into the database */ > /* (note: we choose round 1 to add in the value so that on gauges we'll */ > /* most likely have two inserted values from the first poll, and the second */ > if((stats.round == 1) || ((stats.round % set.smartzeros) == 0)) { > insert_val = result; > } > } else if (set.withzeros) { 276a287 > } 329c340 < if ( (insert_val > 0) || (set.withzeros) ) { --- > if ( (insert_val > 0) || (set.withzeros) || (set.smartzeros && ((stats.round == 1) || ((stats.round % set.smartzeros) == 0)))) {