digitalocean / prometheus-client-c

A Prometheus Client in C
Other
158 stars 78 forks source link

./example uses 100% CPU for one core #67

Open alwynallan opened 2 years ago

alwynallan commented 2 years ago

Changing main.c to

  while(done == 0) {
    sleep(1);
  }

reduces it to 0%. No doubt there's a better way.

nikolaydimitrov commented 1 year ago

I wouldn't mind that, as long as it's the only issue with this code :)