kb/s is kilobits/second, not kilobytes/second. See
<http://en.wikipedia.org/wiki/Kilobits>.
I agree that using the more explicit kbits/s would be better.
Related micro-nit...least according to
http://en.wikipedia.org/wiki/Kilobit_per_second) it should be /1000,
not /1024.
-- Ken
I was just looking at the Fetcher.java code on trunk (r 407599),
snippet below.
The total # of bytes is getting multiplied by 8 and the division by
8.0 is missing;
private void reportStatus() throws IOException {
String status;
synchronized (this) {
long elapsed = (System.currentTimeMillis() - start)/1000;
status =
pages+" pages, "+errors+" errors, "
+ Math.round(((float)pages*10)/elapsed)/10.0+" pages/s, "
+ Math.round(((((float)bytes)*8)/1024)/elapsed)+" kb/s, ";
^^^
}
reporter.setStatus(status);
}
thanks
greg
--
Ken Krugler
Krugle, Inc.
+1 530-210-6378
"Find Code, Find Answers"
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers