- less dots for ppm bar in watchcrawler (one dot for each 10 ppm)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4846 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 17 years ago
parent 8be462986e
commit 01b3e9431a

@ -3,7 +3,7 @@ javacSource=1.5
javacTarget=1.5
# Release Configuration
releaseVersion=0.585
releaseVersion=0.586
stdReleaseFile=yacy_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gz
embReleaseFile=yacy_emb_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gz
proReleaseFile=yacy_pro_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gz

@ -72,7 +72,7 @@ function handleStatus(){
var ppmSpan = document.getElementById("ppmSpan");
removeAllChildren(ppmSpan);
for(i=0;i<ppm;i++){
for(i = 0; i < ppm / 10; i++){
img=document.createElement("img");
img.setAttribute("src", BAR_IMG1);
ppmSpan.appendChild(img);

@ -210,11 +210,15 @@ public final class hello {
seeds.ensureCapacity((ySeeds.size() + 1) * 768);
Iterator<yacySeed> si = ySeeds.values().iterator();
yacySeed s;
String seedString;
while (si.hasNext()) {
s = si.next();
if ((s != null) && (s.isProper() == null)) try {
seeds.append("seed").append(count).append('=').append(s.genSeedStr(key)).append(serverCore.CRLF_STRING);
count++;
seedString = s.genSeedStr(key);
if (seedString != null) {
seeds.append("seed").append(count).append('=').append(seedString).append(serverCore.CRLF_STRING);
count++;
}
} catch (ConcurrentModificationException e) {
e.printStackTrace();
}

@ -51,6 +51,7 @@ import java.io.FileInputStream;
import java.io.InputStream;
import java.security.MessageDigest;
import java.util.Collections;
import java.util.ConcurrentModificationException;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
@ -199,10 +200,21 @@ public final class serverCodings {
synchronized (m) {
final StringBuffer buf = new StringBuffer(20 * m.size());
if (braces) { buf.append("{"); }
for (Entry<String, String> e: m.entrySet()) {
buf.append(e.getKey()).append('=');
if (e.getValue() != null) { buf.append(e.getValue()); }
buf.append(separator);
int retry = 10;
critical: while (retry > 0) {
try {
for (Entry<String, String> e: m.entrySet()) {
buf.append(e.getKey()).append('=');
if (e.getValue() != null) { buf.append(e.getValue()); }
buf.append(separator);
}
break critical; // success
} catch (ConcurrentModificationException e) {
// retry
buf.setLength(1);
retry--;
}
buf.setLength(1); // fail
}
if (buf.length() > 1) { buf.setLength(buf.length() - 1); } // remove last separator
if (braces) { buf.append("}"); }

Loading…
Cancel
Save