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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ClientLoadFiles.tar.gz
Type: application/x-gunzip
Size: 793 bytes
Desc:
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20021215/23fc8f97/attachment.bin>
-------------- next part --------------
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 );