This commit is contained in:
parent
7732ae6e25
commit
e470757ea0
@ -49,8 +49,9 @@ export async function generateMetadata(): Promise<Metadata> {
|
||||
let description = "The current status of Mojang Services\n\n";
|
||||
description += Object.entries(endpoints)
|
||||
.map(([url, status]) => {
|
||||
const formattedStatus = formatStatus(status).padStart(maxStatusLength, " "); // Pad the status to ensure uniform width
|
||||
return `${url}: ${formattedStatus}`;
|
||||
const formattedStatus = formatStatus(status);
|
||||
const padding = " ".repeat(maxStatusLength - formattedStatus.length); // Create padding based on the difference in length
|
||||
return `${url}: ${padding}${formattedStatus}`;
|
||||
})
|
||||
.join("\n");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user