From e7e50bc45d44f768eef03b9f83b9c58982b1de24 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 18 Feb 2018 20:39:43 -0600 Subject: [PATCH] Add a few new internal configs to the node config --- app/Models/Node.php | 10 ++++++++++ public/themes/pterodactyl/js/frontend/console.js | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/Models/Node.php b/app/Models/Node.php index d5d5ac9b..12556cde 100644 --- a/app/Models/Node.php +++ b/app/Models/Node.php @@ -157,6 +157,16 @@ class Node extends Model implements CleansAttributes, ValidableContract 'filesystem' => [ 'server_logs' => '/tmp/pterodactyl', ], + 'internals' => [ + 'disk_use_seconds' => 30, + 'set_permissions_on_boot' => true, + 'throttle' => [ + 'kill_at_count' => 5, + 'decay' => 10, + 'bytes' => 4096, + 'check_interval_ms' => 100, + ], + ], 'sftp' => [ 'path' => $this->daemonBase, 'ip' => '0.0.0.0', diff --git a/public/themes/pterodactyl/js/frontend/console.js b/public/themes/pterodactyl/js/frontend/console.js index 97bd7385..8943da42 100644 --- a/public/themes/pterodactyl/js/frontend/console.js +++ b/public/themes/pterodactyl/js/frontend/console.js @@ -151,14 +151,14 @@ function pushToTerminal(string) { if (TerminalQueue.length > 0) { var scrolledDown = isTerminalScrolledDown(); - + for (var i = 0; i < CONSOLE_PUSH_COUNT && TerminalQueue.length > 0; i++) { pushToTerminal(TerminalQueue[0]); window.ConsoleElements++; TerminalQueue.shift(); } - + if (scrolledDown) { window.scrollToBottom(); } else if ($scrollNotify.hasClass('hidden')) {