Update of /cvsroot/freenet/freenet/src/freenet/client/metadata
In directory sc8-pr-cvs1:/tmp/cvs-serv25857/src/freenet/client/metadata
Modified Files:
Tag: stable
DateRedirect.java VersionCommand.java
Log Message:
5029: Merge from unstable after months of work. MASSIVE changes.
Highlights:
* Next Generation Routing, massive related changes
* Major changes to handling of messages and connections (PeerHandler and related
changes)
* Even more non-blocking I/O
* Documentation improvements
* Lots of new diagnostics and config options
* Lots of bug fixes and performance tweaking
* Probably lots of new bugs too!
Index: DateRedirect.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/client/metadata/DateRedirect.java,v
retrieving revision 1.7.4.2
retrieving revision 1.7.4.2.2.1
diff -u -w -r1.7.4.2 -r1.7.4.2.2.1
--- DateRedirect.java 14 Dec 2002 17:59:28 -0000 1.7.4.2
+++ DateRedirect.java 28 Oct 2003 20:20:29 -0000 1.7.4.2.2.1
@@ -56,12 +56,12 @@
if (offsets == null)
offset = DEFAULT_OFFSET;
else
- offset = Fields.stringToLong(offsets);
+ offset = Fields.hexToLong(offsets);
if (increments == null)
increment = DEFAULT_INCREMENT;
else
- increment = (int) Fields.stringToLong(increments);
+ increment = (int) Fields.hexToLong(increments);
} catch (NumberFormatException e) {
throw new InvalidPartException("DateRedirect: Malformed numeric.");
}
Index: VersionCommand.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/client/metadata/VersionCommand.java,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.6.1
diff -u -w -r1.1.1.1 -r1.1.1.1.6.1
--- VersionCommand.java 13 Jan 2002 05:24:22 -0000 1.1.1.1
+++ VersionCommand.java 28 Oct 2003 20:20:29 -0000 1.1.1.1.6.1
@@ -25,7 +25,7 @@
if (v == null)
throw new InvalidPartException("Version: No revision given");
else try {
- revision = (int) Fields.stringToLong(v);
+ revision = (int) Fields.hexToLong(v);
} catch (NumberFormatException e) {
throw new InvalidPartException("Version: Bad revision number: " +
v);
@@ -39,7 +39,7 @@
public FieldSet toFieldSet() {
FieldSet fs = new FieldSet();
- fs.put("Revision",Fields.longToString(revision));
+ fs.put("Revision",Fields.longToHex(revision));
return fs;
}
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs