int write_stats(int curr, int read_from_file, long *cnt, int use_tm_start,
int use_tm_end, int reset, unsigned int act_id, int reset_cd)
{
- int i, prev_hour;
+ int i, prev_hour, rc = 0;
unsigned long long itv;
static int cross_day = FALSE;
if (IS_SELECTED(act[i]->options) && (act[i]->nr[curr] > 0)) {
/* Display current activity statistics */
(*act[i]->f_print)(act[i], !curr, curr, itv);
+ rc = 1;
}
}
- return 1;
+ return rc;
}
/*
reallocate_all_buffers(act[p], act[p]->nr[curr]);
}
-
/*
* For persistent activities, we must make sure that no statistics
* from a previous iteration remain, especially if the number