diff options
Diffstat (limited to 'collectors/proc.plugin/proc_stat.c')
-rw-r--r-- | collectors/proc.plugin/proc_stat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/collectors/proc.plugin/proc_stat.c b/collectors/proc.plugin/proc_stat.c index 5e6b79fc8c..50fab90e64 100644 --- a/collectors/proc.plugin/proc_stat.c +++ b/collectors/proc.plugin/proc_stat.c @@ -1007,6 +1007,8 @@ int do_proc_stat(int update_every, usec_t dt) { error("Cannot create wake_cpu_thread"); else if(unlikely(pthread_join(thread, NULL))) error("Cannot join wake_cpu_thread"); + if(thread) + pthread_setname_np(thread, "PLUGIN[cpuidle]"); cpu_states_updated = 1; } } |