2 Nov 2010 00:41
Re: [U2] INPUTIF statement in Universe {Unclassified}
Eric Rosenzweig <eric.rosenzweig <at> petco.com>
2010-11-01 23:41:28 GMT
2010-11-01 23:41:28 GMT
This worked great.
Our CPU utilization went to 0 down from 25%.
Thanks to all!
-----Original Message-----
From: u2-users-bounces <at> listserver.u2ug.org
[mailto:u2-users-bounces <at> listserver.u2ug.org] On Behalf Of Leverett,
Brendon
Sent: Tuesday, October 26, 2010 3:03 PM
To: U2 Users List
Subject: Re: [U2] INPUTIF statement in Universe {Unclassified}
Experienced a similar thing a while back and decided to use NAP as well.
Even went as far as changing the NAP depending on how long the period of
inactivity has been.
Sample code:
LASTTIME = TIME()
FOUND.CMD = <at> FALSE
LOOP
UNTIL FOUND.CMD DO
ELAPSED = TIME() - LASTTIME
GOSUB SET.NAP.TIME
IF TIME() - LASTTIME GT QUIT.TIME THEN STOP (or exit or
whatever is best for you)
INPUTIF TCL.CMD THEN FOUND.CMD = <at> TRUE ELSE NAP NAPTIME
REPEAT
(Continue reading)
RSS Feed