mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +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);
|
||||
|
||||
ret = self->next_counter_id;
|
||||
ret += n_counters;
|
||||
self->next_counter_id += n_counters;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user