"); - if (name.length() < 16) - buf.append(name); - else - buf.append(name.substring(0,15)).append("…"); - buf.append(" | \n"); - LeaseSet ls = _context.netDb().lookupLeaseSetLocally(h); - if (ls != null) { - long timeToExpire = ls.getEarliestLeaseDate() - _context.clock().now(); - if (timeToExpire < 0) { - // red or yellow light - buf.append("![]() | |
"); + if (name.length() < 16) + buf.append(name); + else + buf.append(name.substring(0,15)).append("…"); + buf.append(" | \n"); + LeaseSet ls = _context.netDb().lookupLeaseSetLocally(h); + if (ls != null) { + long timeToExpire = ls.getEarliestLeaseDate() - _context.clock().now(); + if (timeToExpire < 0) { + // red or yellow light + buf.append("![]() | ![]() | \n");
+ }
} else {
- // green light
- buf.append("![]() | \n");
+ // yellow light
+ buf.append("![]() | \n");
}
- } else {
- // yellow light
- buf.append("![]() | \n");
}
+ buf.append("