`${val}%`,
},
{
key: 'ram',
- title: 'ram',
+ title: 'RAM',
+ width: 120,
render: (_, record) => {
- return `${filesize(record.payload.memory_used * 1000)} / ${filesize(
- record.payload.memory_total * 1000
- )}`;
+ return (
+
+
{filesize(record.payload.memory_used * 1000)} /
+
{filesize(record.payload.memory_total * 1000)}
+
+ );
},
},
{
key: 'hdd',
- title: 'hdd',
+ title: 'HDD',
+ width: 120,
render: (_, record) => {
- return `${filesize(
- record.payload.hdd_used * 1000 * 1000
- )} / ${filesize(record.payload.hdd_total * 1000 * 1000)}`;
+ return (
+
+
{filesize(record.payload.hdd_used * 1000 * 1000)} /
+
{filesize(record.payload.hdd_total * 1000 * 1000)}
+
+ );
},
},
{
dataIndex: 'updatedAt',
title: 'updatedAt',
+ width: 130,
render: (val) => {
return dayjs(val).format('MMM D HH:mm:ss');
},
@@ -256,14 +275,18 @@ export const ServerList: React.FC<{
Last updated at: {dayjs(lastUpdatedAt).format('YYYY-MM-DD HH:mm:ss')}
- }}
- rowClassName={(record) => clsx(!isServerOnline(record) && 'opacity-60')}
- />
+
+
}}
+ rowClassName={(record) =>
+ clsx(!isServerOnline(record) && 'opacity-60')
+ }
+ />
+
);
});
@@ -286,6 +309,11 @@ export const InstallScript: React.FC = React.memo(() => {
>
{command}
+
+
+ Or you wanna report server status in windows server? switch to Manual
+ tab
+
);
});