[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: returning --monitor output more frequently

From: Dimitris Stasinopoulos
Subject: Re: returning --monitor output more frequently
Date: Sat, 31 May 2003 10:40:56 +0000
User-agent: KMail/1.5

On Friday 30 May 2003 17:33, Pawel Kot wrote:
> On Fri, 30 May 2003, Tobie Kerridge wrote:
> > with a 5110 and dau9p, when I issue "--monitor" gnokii prints new
> > output every 1.3 seconds or so. I'm looking to speed this up, is this
> > an initialisation thing, or is there some source I can edit?
> Function monitormode() in gnokii.c. Line 2617:
>               sleep(1);
> Change to whatever you want. Maybe it would be reasonable to make this
> delay configurable bu the optional argument to gnokii cli with 1 second as
> default?
> pkot

Furthermore, if you want to sleep less than 1 second, you can use select() 
(man 2 select), like this:

struct timeval tv;

select(0, NULL, NULL, NULL, &tv);


Bad or missing IO.SYS. Universe halted

reply via email to

[Prev in Thread] Current Thread [Next in Thread]