mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
writer: increment the next counter id, not the return value
This commit is contained in:
@ -1101,7 +1101,7 @@ sp_capture_writer_request_counter (SpCaptureWriter *self,
|
|||||||
g_assert (self != NULL);
|
g_assert (self != NULL);
|
||||||
|
|
||||||
ret = self->next_counter_id;
|
ret = self->next_counter_id;
|
||||||
ret += n_counters;
|
self->next_counter_id += n_counters;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user