Commit Graph

10 Commits

Author SHA1 Message Date
Ivo Julca
66c00d29af Remove usage of String|Number methods implemented by Sugar.js
Implements Tools#toDurationString to replace Number#duration.
2016-03-09 16:55:40 -05:00
Guangcong Luo
f57c6273e5 Update Monitor.cleanInterval to new style 2016-02-16 03:49:04 -05:00
Guangcong Luo
ed160c475c Decrease ResourceMonitor blocked connection reports 2016-01-25 18:05:32 -05:00
Konrad Borowski
81f602b8d8 Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
Guangcong Luo
49c4dda506 Use Rooms() instead of Rooms.get() 2015-12-11 19:12:00 -05:00
Guangcong Luo
8937b15a22 Periodically clear caches to save RAM use
This actually saves a huge amount of RAM on the main server, like 1/3
or so of all our RAM use is from the monitors.
2015-12-10 10:58:56 -05:00
panpawn
9aef0065dd hotpatch: implement /hotpatch disable
Allows developers to turn off the usage of hotpatch.  (enabled by default)
2015-12-04 20:44:48 +00:00
Ivo Julca
7dddb66253 Migrate build system to ESLint
JSHint's ES6 support is shaky, and its development has stalled as of late.
Since ESLint can do by itself both JSHint and JSCS' jobs, this commit replaces them.
Gulp and its related dependencies are also hereby removed.
2015-11-07 21:36:49 -05:00
Juanma Serrano
c4ac8d6e2f Use strict mode and let and const instead of var
This commit also fixes some duplicated variable declarations.
2015-11-06 21:56:52 -05:00
Guangcong Luo
ab71ae20fe Refactor ResourceMonitor into monitor.js
ResourceMonitor has been moved from app.js into monitor.js and
renamed to simply Monitor. It also gains the ability to fine-
grained control the log level, although in a pretty crude way.

Monitor.debug - bugs in PS's engine that we need to fix
someday - by default, these aren't reported

Monitor.warn - issues that suggest an attacker or poorly
coded custom client - these should probably be looked at

Monitor.notice - issues that staff probably want to know.
These are usually also written to the Staff room.
2015-10-04 17:02:17 -04:00