mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-07 08:34:15 +01:00
refactor: Remove unused function prettifyUptime
This commit is contained in:
parent
a848776a34
commit
16df341581
@ -151,12 +151,6 @@ export default {
|
||||
generateResponseTimeChartImageURL() {
|
||||
return `${this.serverUrl}/api/v1/endpoints/${this.endpointStatus.key}/response-times/24h/chart.svg`;
|
||||
},
|
||||
prettifyUptime(uptime) {
|
||||
if (!uptime) {
|
||||
return '0%';
|
||||
}
|
||||
return (uptime * 100).toFixed(2) + '%'
|
||||
},
|
||||
prettifyTimeDifference(start, end) {
|
||||
let minutes = Math.ceil((new Date(start) - new Date(end)) / 1000 / 60);
|
||||
return minutes + (minutes === 1 ? ' minute' : ' minutes');
|
||||
|
Loading…
Reference in New Issue
Block a user