Don't try to render 200 lines per second in the console... 💣
Corrects a math mistake on my end, and makes the console speed configurable again. Now sends 50 messages per second. Console will notify when being throttled, and refreshing the page will clear the queue if necessary.
This commit is contained in:
parent
d46eac9b60
commit
377fe92f5b
4 changed files with 22 additions and 2 deletions
|
@ -3,6 +3,10 @@ This file is a running track of new features and fixes to each version of the pa
|
|||
|
||||
This project follows [Semantic Versioning](http://semver.org) guidelines.
|
||||
|
||||
## v0.6.0-pre.7 (Courageous Carniadactylus)
|
||||
### Fixed
|
||||
* `[pre.6]` — Addresses misconfigured console queue that was still sending data way to quickly thus causing the console to explode on some devices when large amounts of data were sent.
|
||||
|
||||
## v0.6.0-pre.6 (Courageous Carniadactylus)
|
||||
### Fixed
|
||||
* `[pre.5]` — Console based server rebuild tool now actually rebuilds the servers with the correct information.
|
||||
|
|
|
@ -62,6 +62,10 @@ class ServerController extends Controller
|
|||
'saveFile' => route('server.files.save', $server->uuidShort),
|
||||
'csrfToken' => csrf_token(),
|
||||
],
|
||||
'config' => [
|
||||
'console_count' => config('pterodactyl.console.count'),
|
||||
'console_freq' => config('pterodactyl.console.freq'),
|
||||
],
|
||||
]);
|
||||
|
||||
return view('server.index', [
|
||||
|
|
|
@ -55,6 +55,18 @@ return [
|
|||
'high' => env('QUEUE_HIGH', 'high'),
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Console Configuration
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Configure the speed at which data is rendered to the console.
|
||||
*/
|
||||
'console' => [
|
||||
'count' => env('CONSOLE_PUSH_COUNT', 10),
|
||||
'frequency' => env('CONSOLE_PUSH_FREQ', 200),
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Task Timers
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
// SOFTWARE.
|
||||
|
||||
var Console = (function () {
|
||||
var CONSOLE_PUSH_COUNT = 50;
|
||||
var CONSOLE_PUSH_FREQ = 200;
|
||||
var CONSOLE_PUSH_COUNT = Pterodactyl.config.console_count;
|
||||
var CONSOLE_PUSH_FREQ = Pterodactyl.config.console_freq;
|
||||
|
||||
var terminalQueue;
|
||||
var terminal;
|
||||
|
|
Loading…
Reference in a new issue