Changeset 501f2f85


Ignore:
Timestamp:
May 23, 2012 4:37:43 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
4979f8d, b2846de
Parents:
580bb5a6
Message:
  • jobs.jsp: Add more queue diagnostics
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/JobQueueHelper.java

    r580bb5a6 r501f2f85  
    99import java.util.Comparator;
    1010import java.util.List;
    11 import java.util.TreeMap;
    1211
    1312import net.i2p.data.DataHelper;
     
    7776
    7877        buf.append("<hr><b>Scheduled jobs: ").append(timedJobs.size()).append("</b><ol>\n");
    79         TreeMap<Long, Job> ordered = new TreeMap();
    80         for (int i = 0; i < timedJobs.size(); i++) {
    81             Job j = timedJobs.get(i);
    82             ordered.put(Long.valueOf(j.getTiming().getStartAfter()), j);
    83         }
    84         for (Job j : ordered.values()) {
     78        long prev = Long.MIN_VALUE;
     79        for (Job j : timedJobs) {
    8580            long time = j.getTiming().getStartAfter() - now;
    8681            buf.append("<li>").append(j.getName()).append(" in ");
    87             buf.append(DataHelper.formatDuration2(time)).append("</li>\n");
     82            buf.append(DataHelper.formatDuration2(time));
     83            if (time < 0)
     84                buf.append(" <b>DELAYED</b>");
     85            if (time < prev)
     86                buf.append(" <b>** OUT OF ORDER **</b>");
     87            prev = time;
     88            buf.append("</li>\n");
    8889        }
    8990        buf.append("</ol></div>\n");
  • history.txt

    r580bb5a6 r501f2f85  
     12012-05-23 zzz
     2 * i2psnark:
     3   - Fixes when complete except for skipped files
     4     (ticket #447) status in UI, don't connect outbound,
     5     disconnect seeds when done
     6   - More classes pkg private
     7 * jobs.jsp: Add more queue diagnostics
     8
    192012-05-22 zzz
    210 * i2psnark:
     
    1018 * i2psnark:
    1119   - Create sparse files at torrent creation and delay
    12      "ballooning" until first write (ticket #641)
     20     "ballooning" until first write (ticket #641, #447)
    1321   - Redo clear messages button
    1422   - Concurrent message queue
  • router/java/src/net/i2p/router/RouterVersion.java

    r580bb5a6 r501f2f85  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 4;
     21    public final static long BUILD = 5;
    2222
    2323    /** for example "-test" */
Note: See TracChangeset for help on using the changeset viewer.