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";
|
let description = "The current status of Mojang Services\n\n";
|
||||||
description += Object.entries(endpoints)
|
description += Object.entries(endpoints)
|
||||||
.map(([url, status]) => {
|
.map(([url, status]) => {
|
||||||
const formattedStatus = formatStatus(status).padStart(maxStatusLength, " "); // Pad the status to ensure uniform width
|
const formattedStatus = formatStatus(status);
|
||||||
return `${url}: ${formattedStatus}`;
|
const padding = " ".repeat(maxStatusLength - formattedStatus.length); // Create padding based on the difference in length
|
||||||
|
return `${url}: ${padding}${formattedStatus}`;
|
||||||
})
|
})
|
||||||
.join("\n");
|
.join("\n");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user