diff --git a/src/libsysprof-capture/sysprof-collector.c b/src/libsysprof-capture/sysprof-collector.c index e41e8018..454c1109 100644 --- a/src/libsysprof-capture/sysprof-collector.c +++ b/src/libsysprof-capture/sysprof-collector.c @@ -424,7 +424,7 @@ sysprof_collector_get (void) #else self->tid = self->pid; #endif - self->next_counter_id = ((unsigned)self->pid << 16); + self->next_counter_id = (((unsigned)self->pid << 16) >> 8); pthread_mutex_lock (&control_fd_lock);