Wouldn't it be preferable to have a generic "GetNodeStatus" command which contained more general information, including EstimatedLoad?
Ian. On Sun, Dec 15, 2002 at 03:41:00PM +1100, fish wrote: > > On Sat, 14 Dec 2002, Matthew Toseland wrote: > > > On Sat, Dec 14, 2002 at 06:05:55PM +1100, fish wrote: > > > > > > can this be done already? It'd be useful for me ;) Or at least, some > > > indication of when I should stop throwing threads at fred (other than an > > > RNF return, hahah) > > Go code it then. > > The attached patch/files implent a ClientLoad FCP message, which returns: > > NodeLoad > EstimatedLoad=[current estimated load percentage] > EndMessage > > - fish > sh: gzcat: command not found > Index: src/freenet/node/Main.java > =================================================================== > RCS file: /cvsroot/freenet/freenet/src/freenet/node/Main.java,v > retrieving revision 1.129 > diff -u -3 -p -u -r1.129 Main.java > --- src/freenet/node/Main.java 7 Dec 2002 01:42:10 -0000 1.129 > +++ src/freenet/node/Main.java 15 Dec 2002 04:36:32 -0000 > @@ -1668,6 +1668,7 @@ public class Main { > > // FCP messages > mh.addType( FCPRawMessage.class, ClientHello.messageName, >ClientHello.class ); > + mh.addType( FCPRawMessage.class, ClientLoad.messageName, >ClientLoad.class ); > mh.addType( FCPRawMessage.class, GenerateSVKPair.messageName, >GenerateSVKPair.class ); > mh.addType( FCPRawMessage.class, GenerateCHK.messageName, >GenerateCHK.class ); > mh.addType( FCPRawMessage.class, ClientGet.messageName, >ClientGet.class ); -- Ian Clarke ian@[freenetproject.org|locut.us|cematics.com] Latest Project http://cematics.com/kanzi Personal Homepage http://locut.us/ _______________________________________________ devl mailing list [EMAIL PROTECTED] http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl