Re: [wmii] multiple status/sleep instances in top

From: Anselm R. Garbe <garbeam_AT_wmii.de>
Date: Wed, 24 May 2006 18:19:20 +0200

On Wed, May 24, 2006 at 12:04:50PM -0400, mikshaw wrote:
> According to the wmii-3 guide, section 6.5, removing the status label
> before running a new instance of status "ensures that the status label
> will not exist, hence all the writes made from any previously running
> status script will fail, thus they will finish." This works fine if
> you leave the sleep time at the default 1 second. However, as was
> suggested elsewhere I extended the sleep time to 20sec to reduce the
> system load a little. This results in the previous status scripts
> not finishing, because they are usually sleeping during the 2-second
> period that the status label is non-existent. By the time they wake
> up, the status label has been recreated and so they continue their
> loop. This results in multiple instances of status and multiple
> instances of sleep. After several runs of wmiirc the status bar is
> constantly being written, which negates the original purpose of
> extending the status sleep time.

Yes that is true, and in such scenario one needs to sleep after
the remove at least the same timeout, than refresh.

Regards,

-- 
 Anselm R. Garbe  ><><  www.ebrag.de  ><><  GPG key: 0D73F361
Received on Wed May 24 2006 - 18:19:20 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:06:45 UTC