- Add indication on summary bar when in VM comm system

This commit is contained in:
zzz
2012-01-10 00:02:20 +00:00
parent ad4d73ea0d
commit c6e6a9d36e

View File

@ -101,6 +101,8 @@ public class SummaryHelper extends HelperBase {
} }
private String reachability() { private String reachability() {
if (_context.commSystem().isDummy())
return "VM Comm System";
if (_context.router().getUptime() > 60*1000 && (!_context.router().gracefulShutdownInProgress()) && if (_context.router().getUptime() > 60*1000 && (!_context.router().gracefulShutdownInProgress()) &&
!_context.clientManager().isAlive()) !_context.clientManager().isAlive())
return _("ERR-Client Manager I2CP Error - check logs"); // not a router problem but the user should know return _("ERR-Client Manager I2CP Error - check logs"); // not a router problem but the user should know
@ -180,6 +182,7 @@ public class SummaryHelper extends HelperBase {
return _context != null && return _context != null &&
_context.netDb().isInitialized() && _context.netDb().isInitialized() &&
_context.router().getUptime() > 2*60*1000 && _context.router().getUptime() > 2*60*1000 &&
(!_context.commSystem().isDummy()) &&
_context.commSystem().countActivePeers() <= 0 && _context.commSystem().countActivePeers() <= 0 &&
_context.netDb().getKnownRouters() > 5; _context.netDb().getKnownRouters() > 5;
} }