*) renaming of function getTransferedEntitySpeed to getTransferedEntrySpeed to avoid confusion

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2308 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 19 years ago
parent 01363bc7f6
commit b3c569f706

@ -63,7 +63,7 @@
<td class="small" rowspan="2" align="left">#[twEntityCount]# Entities (#[twEntityPercent]#%)<br>
#[twEntryCount]# Entries<br>
#[twPayloadSize]#<br>
#[twEntitySpeed]# entities/s</td>
#[twEntrySpeed]# entries/s</td>
<td class="small" rowspan="2">#(deleteIndex)#false::true#(/deleteIndex)#</td>
<td class="small" rowspan="2">#[peerName]#</td>
<td class="small" rowspan="2">#(stopped)#<input type="submit" name="stopIndexTransfer" value="Stop Index Transfer">::

@ -116,7 +116,7 @@ public final class IndexTransfer_p {
prop.put("running_twEntryCount",switchboard.transferIdxThread.getTransferedEntryCount());
prop.put("running_twPayloadSize",serverMemory.bytesToString(switchboard.transferIdxThread.getTransferedBytes()));
prop.put("running_twEntityPercent",Float.toString(switchboard.transferIdxThread.getTransferedContainerPercent()));
prop.put("running_twEntitySpeed",Integer.toString(switchboard.transferIdxThread.getTransferedEntitySpeed()));
prop.put("running_twEntrySpeed",Integer.toString(switchboard.transferIdxThread.getTransferedEntrySpeed()));
prop.put("running_deleteIndex", switchboard.transferIdxThread.deleteIndex()?1:0);
prop.put("running_peerName",switchboard.transferIdxThread.getSeed().getName());

@ -123,7 +123,7 @@ public class plasmaDHTFlush extends Thread {
else return (this.transferedContainerCount*100/this.initialWordsDBSize);
}
public int getTransferedEntitySpeed() {
public int getTransferedEntrySpeed() {
long transferTime = System.currentTimeMillis() - this.startingTime;
if (transferTime <= 0) transferTime = 1;
return (int) ((1000 * this.transferedEntryCount) / transferTime);

Loading…
Cancel
Save