mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-25 07:05:49 +00:00
quick fix to ClassCastException in ToePool.shortReportLineTo().
fixed a typo in Job.ftl.
This commit is contained in:
@@ -283,30 +283,32 @@ public class ToePool extends ThreadGroup implements Reporter {
|
||||
w.print(map.get("toeCount"));
|
||||
w.print(" threads: ");
|
||||
|
||||
TreeSet<Map.Entry<Object,Long>> sortedSteps = (TreeSet<Entry<Object, Long>>) map.get("steps");
|
||||
if(sortedSteps.size()==0) {
|
||||
return;
|
||||
LinkedList<String> sortedSteps = (LinkedList<String>)map.get("steps");
|
||||
{
|
||||
Iterator<String> iter = sortedSteps.iterator();
|
||||
if (!iter.hasNext()) {
|
||||
return;
|
||||
}
|
||||
w.print(iter.next());
|
||||
if (iter.hasNext()) {
|
||||
w.print(", ");
|
||||
w.print(iter.next());
|
||||
if (iter.hasNext()) {
|
||||
w.print(", etc...");
|
||||
}
|
||||
}
|
||||
w.print("; ");
|
||||
}
|
||||
w.print(Histotable.entryString(sortedSteps.first()));
|
||||
if(sortedSteps.size()>1) {
|
||||
Iterator<Map.Entry<Object,Long>> iter = sortedSteps.iterator();
|
||||
iter.next();
|
||||
w.print(", ");
|
||||
w.print(Histotable.entryString(iter.next()));
|
||||
}
|
||||
if(sortedSteps.size()>2) {
|
||||
w.print(", etc...");
|
||||
}
|
||||
w.print("; ");
|
||||
TreeSet<Map.Entry<Object,Long>> sortedProcessors = (TreeSet<Entry<Object, Long>>) map.get("processors");
|
||||
w.print(Histotable.entryString(sortedProcessors.first()));
|
||||
if(sortedProcessors.size()>1) {
|
||||
Iterator<Map.Entry<Object,Long>> iter = sortedProcessors.iterator();
|
||||
iter.next();
|
||||
while(iter.hasNext()) {
|
||||
w.print(", ");
|
||||
w.print(Histotable.entryString(iter.next()));
|
||||
}
|
||||
LinkedList<String> sortedProcesses = (LinkedList<String>)map.get("processors");
|
||||
{
|
||||
Iterator<String> iter = sortedProcesses.iterator();
|
||||
if (iter.hasNext()) {
|
||||
w.print(iter.next());
|
||||
while (iter.hasNext()) {
|
||||
w.print(", ");
|
||||
w.print(iter.next());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@ ${line?html}
|
||||
</#if>
|
||||
|
||||
<h2>Files</h2>
|
||||
<h3>Browser <a href='jobdir'>Job Directory</a></h3>
|
||||
<h3>Browse <a href='jobdir'>Job Directory</a></h3>
|
||||
<h3>Configuration-referenced Paths</h3>
|
||||
<#assign configRefPaths=job.configFiles! />
|
||||
<#if !configRefPaths?has_content >
|
||||
|
||||
Reference in New Issue
Block a user