fix: update @push.rocks/smartproxy to version 19.6.2 and adjust refresh intervals in app state
This commit is contained in:
@ -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`;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user