fix: update @push.rocks/smartproxy to version 19.6.2 and adjust refresh intervals in app state

This commit is contained in:
Juergen Kunz
2025-06-10 16:09:41 +00:00
parent 02dd3c77b5
commit 0eb4963247
5 changed files with 19 additions and 13 deletions

View File

@ -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`;
}
}