Re: mvbar plugin creates too much cpu load

> the mvbar plugin creates huge cpu load here, it seems that this is due
> to unlimited refreshes of the progressbar. Adding a random usleep() to
> the loop resolves the problem. I simply chose a random number to test
> it, I attach the 'svn diff' anyway.
> 
Uwe, I guess you really don't want a 10-second refresh interval. A few lines 
further down from the change you suggested, there's a
  usleep (1000)
I can't think of any compelling reason for ~1kHZ progress refreshes, so how 
about
  usleep (100000)
instead ?

Likewise in cpbar plugin, at line 379.

Regards
Tom


-- 
Users can unsubscribe from the list by sending email to 
emelfm2-request@xxxxxxxxxxxxx with 'unsubscribe' in the subject field or by 
logging into the web interface.

Other related posts: