perf task bugs fixed v2

remotes/origin/master-1.0.x
Anoop Saldanha 16 years ago committed by Victor Julien
parent fc8bb6c934
commit ed820e22cf

@ -469,7 +469,7 @@ PerfCounterArray * PerfGetCounterArrayRange(u_int32_t s_id, u_int32_t e_id,
* *
* @param pctx is a pointer to the tv's PerfContext * @param pctx is a pointer to the tv's PerfContext
* *
* returns a counter-array for all the counters of this tm instance * @returns a counter-array for all the counters of this tm instance
*/ */
PerfCounterArray * PerfGetAllCountersArray(PerfContext *pctx) PerfCounterArray * PerfGetAllCountersArray(PerfContext *pctx)
{ {
@ -503,8 +503,8 @@ int PerfUpdateCounter(char *cname, char *tm_name, u_int32_t id, void *value,
} }
if (value == NULL) { if (value == NULL) {
printf("value is NULL\n"); printf("Pointer to counter(value) supplied to PerfUpdateCounter is NULL\n");
exit(0); return 0;
} }
pc = pctx->head; pc = pctx->head;

Loading…
Cancel
Save