Compare commits
3 Commits
5d43f7e0d7
...
9dab44f7e3
| Author | SHA1 | Date | |
|---|---|---|---|
| 9dab44f7e3 | |||
| c8fb773be4 | |||
| 458b8fae0b |
@@ -1889,7 +1889,7 @@ async def api_services():
|
|||||||
has_domain_issues = True
|
has_domain_issues = True
|
||||||
health = "needs_attention" if (has_port_issues or has_domain_issues) else "healthy"
|
health = "needs_attention" if (has_port_issues or has_domain_issues) else "healthy"
|
||||||
# Check Bitcoin IBD state
|
# Check Bitcoin IBD state
|
||||||
if unit == "bitcoind.service":
|
if unit == "bitcoind.service" and enabled:
|
||||||
sync = await loop.run_in_executor(None, _get_bitcoin_sync_info)
|
sync = await loop.run_in_executor(None, _get_bitcoin_sync_info)
|
||||||
if sync and sync.get("initialblockdownload"):
|
if sync and sync.get("initialblockdownload"):
|
||||||
health = "syncing"
|
health = "syncing"
|
||||||
@@ -2127,7 +2127,7 @@ async def api_service_detail(unit: str, icon: str | None = None):
|
|||||||
has_domain_issues = True
|
has_domain_issues = True
|
||||||
health = "needs_attention" if (has_port_issues or has_domain_issues) else "healthy"
|
health = "needs_attention" if (has_port_issues or has_domain_issues) else "healthy"
|
||||||
# Check Bitcoin IBD state
|
# Check Bitcoin IBD state
|
||||||
if unit == "bitcoind.service":
|
if unit == "bitcoind.service" and enabled:
|
||||||
sync = await loop.run_in_executor(None, _get_bitcoin_sync_info)
|
sync = await loop.run_in_executor(None, _get_bitcoin_sync_info)
|
||||||
if sync and sync.get("initialblockdownload"):
|
if sync and sync.get("initialblockdownload"):
|
||||||
health = "syncing"
|
health = "syncing"
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ function buildTile(svc) {
|
|||||||
return tile;
|
return tile;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (svc.sync_ibd) {
|
if (svc.sync_ibd && svc.enabled) {
|
||||||
var pct = Math.round((svc.sync_progress || 0) * 100);
|
var pct = Math.round((svc.sync_progress || 0) * 100);
|
||||||
var id = tileId(svc);
|
var id = tileId(svc);
|
||||||
var eta = _calcBtcEta(id, svc.sync_progress || 0);
|
var eta = _calcBtcEta(id, svc.sync_progress || 0);
|
||||||
@@ -203,7 +203,7 @@ function updateTiles(services) {
|
|||||||
var tile = $tilesArea.querySelector('.service-tile[data-tile-id="' + id + '"]');
|
var tile = $tilesArea.querySelector('.service-tile[data-tile-id="' + id + '"]');
|
||||||
if (!tile) continue;
|
if (!tile) continue;
|
||||||
|
|
||||||
if (svc.sync_ibd) {
|
if (svc.sync_ibd && svc.enabled) {
|
||||||
// If tile was previously normal, rebuild it with the sync layout
|
// If tile was previously normal, rebuild it with the sync layout
|
||||||
if (!tile.querySelector(".tile-sync-container")) {
|
if (!tile.querySelector(".tile-sync-container")) {
|
||||||
var newTile = buildTile(svc);
|
var newTile = buildTile(svc);
|
||||||
|
|||||||
Reference in New Issue
Block a user