diff --git a/package.json b/package.json index e002c49..5af68c5 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "@push.rocks/smartnetwork": "^4.0.2", "@push.rocks/smartpath": "^5.0.5", "@push.rocks/smartpromise": "^4.0.3", - "@push.rocks/smartproxy": "^19.6.1", + "@push.rocks/smartproxy": "^19.6.2", "@push.rocks/smartrequest": "^2.1.0", "@push.rocks/smartrule": "^2.0.1", "@push.rocks/smartrx": "^3.0.10", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a744696..44322de 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -72,8 +72,8 @@ importers: specifier: ^4.0.3 version: 4.2.3 '@push.rocks/smartproxy': - specifier: ^19.6.1 - version: 19.6.1(@aws-sdk/credential-providers@3.817.0)(socks@2.8.4) + specifier: ^19.6.2 + version: 19.6.2(@aws-sdk/credential-providers@3.817.0)(socks@2.8.4) '@push.rocks/smartrequest': specifier: ^2.1.0 version: 2.1.0 @@ -1062,8 +1062,8 @@ packages: '@push.rocks/smartpromise@4.2.3': resolution: {integrity: sha512-Ycg/TJR+tMt+S3wSFurOpEoW6nXv12QBtKXgBcjMZ4RsdO28geN46U09osPn9N9WuwQy1PkmTV5J/V4F9U8qEw==} - '@push.rocks/smartproxy@19.6.1': - resolution: {integrity: sha512-CkztOqRR1i0icOPad5TlzjrNAXvr/L3BMjlo+fhp3c/dPuXV9Z/isOECz0Flk0A3anKIgCqC9pGNzdNdssLUsQ==} + '@push.rocks/smartproxy@19.6.2': + resolution: {integrity: sha512-k7kmVqJLnCrm435U/NLyWWP0sJ5O61zHRk1RtPZbtrfMvLGO06b0Rjt5xh/UgdceKtvhol0kheibdfOL7vgOuw==} '@push.rocks/smartpuppeteer@2.0.5': resolution: {integrity: sha512-yK/qSeWVHIGWRp3c8S5tfdGP6WCKllZC4DR8d8CQlEjszOSBmHtlTdyyqOMBZ/BA4kd+eU5f3A1r4K2tGYty1g==} @@ -6223,7 +6223,7 @@ snapshots: '@push.rocks/smartpromise@4.2.3': {} - '@push.rocks/smartproxy@19.6.1(@aws-sdk/credential-providers@3.817.0)(socks@2.8.4)': + '@push.rocks/smartproxy@19.6.2(@aws-sdk/credential-providers@3.817.0)(socks@2.8.4)': dependencies: '@push.rocks/lik': 6.2.2 '@push.rocks/smartacme': 8.0.0(@aws-sdk/credential-providers@3.817.0)(socks@2.8.4) diff --git a/ts_web/appstate.ts b/ts_web/appstate.ts index 2635d0d..615a14b 100644 --- a/ts_web/appstate.ts +++ b/ts_web/appstate.ts @@ -82,7 +82,7 @@ export const uiStatePart = await appState.getStatePart( activeView: 'dashboard', sidebarCollapsed: false, autoRefresh: true, - refreshInterval: 30000, // 30 seconds + refreshInterval: 1000, // 1 second theme: 'light', }, ); diff --git a/ts_web/elements/ops-view-overview.ts b/ts_web/elements/ops-view-overview.ts index 872cb58..1e9c38f 100644 --- a/ts_web/elements/ops-view-overview.ts +++ b/ts_web/elements/ops-view-overview.ts @@ -197,13 +197,16 @@ export class OpsViewOverview extends DeesElement { const days = Math.floor(seconds / 86400); const hours = Math.floor((seconds % 86400) / 3600); const minutes = Math.floor((seconds % 3600) / 60); + const secs = Math.floor(seconds % 60); if (days > 0) { - return `${days}d ${hours}h ${minutes}m`; + return `${days}d ${hours}h ${minutes}m ${secs}s`; } else if (hours > 0) { - return `${hours}h ${minutes}m`; + return `${hours}h ${minutes}m ${secs}s`; + } else if (minutes > 0) { + return `${minutes}m ${secs}s`; } else { - return `${minutes}m`; + return `${secs}s`; } } diff --git a/ts_web/elements/ops-view-stats.ts b/ts_web/elements/ops-view-stats.ts index ea4c349..b343164 100644 --- a/ts_web/elements/ops-view-stats.ts +++ b/ts_web/elements/ops-view-stats.ts @@ -265,13 +265,16 @@ export class OpsViewStats extends DeesElement { const days = Math.floor(seconds / 86400); const hours = Math.floor((seconds % 86400) / 3600); const minutes = Math.floor((seconds % 3600) / 60); + const secs = Math.floor(seconds % 60); if (days > 0) { - return `${days}d ${hours}h`; + return `${days}d ${hours}h ${minutes}m ${secs}s`; } else if (hours > 0) { - return `${hours}h ${minutes}m`; + return `${hours}h ${minutes}m ${secs}s`; + } else if (minutes > 0) { + return `${minutes}m ${secs}s`; } else { - return `${minutes}m`; + return `${secs}s`; } }