commented not-used code
Costa Tsaousis (ktsaou) committed
Nov 7, 2016 at 23:07 UTC
b396ab0947392ba67aa890e4df0466144ff7073f
1 file changed
+3
-1
src/health.c
+3
-1
@@ -2652,7 +2652,7 @@ void *health_main(void *ptr) {
2652
// 2. if there is calculation expression, run it
2653
2654
if (unlikely(RRDCALC_HAS_DB_LOOKUP(rc))) {
2655
- time_t old_db_timestamp = rc->db_before;
2655
+ /* time_t old_db_timestamp = rc->db_before; */
2656
int value_is_null = 0;
2657
2658
int ret = rrd2value(rc->rrdset, wb, &rc->value,
@@ -2673,6 +2673,7 @@ void *health_main(void *ptr) {
2673
else if (unlikely(rc->rrdcalc_flags & RRDCALC_FLAG_DB_ERROR))
2674
rc->rrdcalc_flags &= ~RRDCALC_FLAG_DB_ERROR;
2675
2676
+ /* - RRDCALC_FLAG_DB_STALE not currently used
2677
if (unlikely(old_db_timestamp == rc->db_before)) {
2678
// database is stale
2679
@@ -2685,6 +2686,7 @@ void *health_main(void *ptr) {
2686
}
2687
else if (unlikely(rc->rrdcalc_flags & RRDCALC_FLAG_DB_STALE))
2688
rc->rrdcalc_flags &= ~RRDCALC_FLAG_DB_STALE;
2689
+ */
2690
2691
if (unlikely(value_is_null)) {
2692
// collected value is null