- 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 javacTarget=1.5
# Release Configuration # Release Configuration
releaseVersion=0.585 releaseVersion=0.586
stdReleaseFile=yacy_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gz stdReleaseFile=yacy_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gz
embReleaseFile=yacy_emb_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gz embReleaseFile=yacy_emb_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gz
proReleaseFile=yacy_pro_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"); var ppmSpan = document.getElementById("ppmSpan");
removeAllChildren(ppmSpan); removeAllChildren(ppmSpan);
for(i=0;i<ppm;i++){ for(i = 0; i < ppm / 10; i++){
img=document.createElement("img"); img=document.createElement("img");
img.setAttribute("src", BAR_IMG1); img.setAttribute("src", BAR_IMG1);
ppmSpan.appendChild(img); ppmSpan.appendChild(img);

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

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

Loading…
Cancel
Save