refactor: Remove unused function prettifyUptime

This commit is contained in:
TwiN 2022-01-16 22:02:58 -05:00
parent a848776a34
commit 16df341581

View File

@ -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');