diff --git a/public/themes/pterodactyl/js/admin/node/view-servers.js b/public/themes/pterodactyl/js/admin/node/view-servers.js index 9041379cc..96950cd19 100644 --- a/public/themes/pterodactyl/js/admin/node/view-servers.js +++ b/public/themes/pterodactyl/js/admin/node/view-servers.js @@ -101,11 +101,13 @@ currentCpu = parseFloat(((info.proc.cpu.total / cpuMax) * 100).toFixed(2).toString()); } element.find('[data-action="memory"]').html(parseInt(info.proc.memory.total / (1024 * 1024))); + element.find('[data-action="disk"]').html(parseInt(info.proc.disk.used)); element.find('[data-action="cpu"]').html(currentCpu); } else { element.find('[data-action="memory"]').html('--'); + element.find('[data-action="disk"]').html('--'); element.find('[data-action="cpu"]').html('--'); } }); }); -})(); +})(); \ No newline at end of file diff --git a/public/themes/pterodactyl/js/frontend/serverlist.js b/public/themes/pterodactyl/js/frontend/serverlist.js index 1c6865a9b..6e4d5c4e4 100644 --- a/public/themes/pterodactyl/js/frontend/serverlist.js +++ b/public/themes/pterodactyl/js/frontend/serverlist.js @@ -74,9 +74,11 @@ } element.find('[data-action="memory"]').html(parseInt(data.proc.memory.total / (1024 * 1024))); element.find('[data-action="cpu"]').html(currentCpu); + element.find('[data-action="disk"]').html(parseInt(data.proc.disk.used)); } else { element.find('[data-action="memory"]').html('--'); element.find('[data-action="cpu"]').html('--'); + element.find('[data-action="disk"]').html('--'); } } }).fail(function (jqXHR) { diff --git a/resources/lang/en/strings.php b/resources/lang/en/strings.php index c0bf3f417..2407dcd36 100644 --- a/resources/lang/en/strings.php +++ b/resources/lang/en/strings.php @@ -14,6 +14,7 @@ return [ 'connection' => 'Connection', 'memory' => 'Memory', 'cpu' => 'CPU', + 'disk' => 'Disk', 'status' => 'Status', 'search' => 'Search', 'suspended' => 'Suspended', diff --git a/resources/themes/pterodactyl/admin/nodes/view/servers.blade.php b/resources/themes/pterodactyl/admin/nodes/view/servers.blade.php index 5aed0ccb5..17d6d531b 100644 --- a/resources/themes/pterodactyl/admin/nodes/view/servers.blade.php +++ b/resources/themes/pterodactyl/admin/nodes/view/servers.blade.php @@ -57,10 +57,10 @@
{{ $server->getRelation('allocation')->alias }}:{{ $server->getRelation('allocation')->port }}