Commit Graph

37 Commits

Author SHA1 Message Date
ea15b979d5 prettyify code 2023-12-30 23:03:54 +00:00
mjezek
23b46a3dd5
Delete old unnecessary ping records, store player count records in separate table 2022-03-13 12:47:45 +01:00
Nick Krecklow
7313971871
prevent undefined/null values breaking graphs or scales 2020-06-12 18:59:59 -05:00
Nick Krecklow
05df7081e4
fix potential null errors in recordData/graphPeakData 2020-05-20 19:56:10 -05:00
Nick Krecklow
9bdc892815
Merge branch 'master' of https://github.com/Cryptkeeper/Minetrack into uplot 2020-05-14 20:50:51 -05:00
Nick Krecklow
9a38160019
replace ServerRegistration#unfurlSrv to DNSResolver class 2020-05-14 20:30:40 -05:00
Nick Krecklow
005798aa0d
fix wrong SRV record name -> _minecraft._tcp. 2020-05-13 16:40:12 -05:00
Nick Krecklow
0c98930d4c
centralize timestamp/point filtering, move magic numbers into named constants 2020-05-11 18:44:29 -05:00
Nick Krecklow
903343fbdf
unify TimeTracker code, explicitly mark nullable playerCounts as unsafe 2020-05-11 18:29:26 -05:00
Nick Krecklow
7136851123
centralize shift behavior into TimeTracker func 2020-05-11 18:16:41 -05:00
Nick Krecklow
c2f6d04e72
share a single timestamp array between all graphData objects 2020-05-11 18:12:29 -05:00
Nick Krecklow
84004f22be
merge graph timestamps into single array, use seconds 2020-05-11 04:12:46 -05:00
Nick Krecklow
ef0c41ee1d
remove graph smoothing behavior, add null playerCount support 2020-05-11 03:10:23 -05:00
Nick Krecklow
10bd23cfa4
use mcping-js, prevent ping loops while the last is still running 2020-05-09 23:28:37 -05:00
Nick Krecklow
11d3031b6c
add config.performance.unfurlSrvCacheTtl option for caching resolveSrv calls 2020-05-08 16:53:48 -05:00
Nick Krecklow
f6780e7a9b
prevent data leakage when sending server.data 2020-05-08 16:22:24 -05:00
Nick Krecklow
320dc3c2fb
send playerCount in payload directly instead of nesting into legacy data structure 2020-05-08 16:13:24 -05:00
Nick Krecklow
04d94a9461
use regex + static method to centralize hashedfavicon URL behavior 2020-05-08 16:00:36 -05:00
Nick Krecklow
15814cf86b
serve hashedfavicon path as png 2020-05-08 05:05:46 -05:00
Nick Krecklow
4dfecce966
serve favicons over hashed paths for improved caching 2020-05-08 04:47:10 -05:00
Nick Krecklow
024e605a41
make getMaxGraphDataLength/getMaxServerGraphDataLength methods static 2020-05-08 02:56:39 -05:00
Nick Krecklow
3491c73b89
store pingHistory as player count directly 2020-05-08 02:52:48 -05:00
Nick Krecklow
e45f8b6639
simplify addServer/pingHistory & placeholder generation prior to optimizations 2020-05-08 02:39:30 -05:00
Nick Krecklow
f467fa1938
add serverGraphDuration config option 2020-05-08 01:54:04 -05:00
Nick Krecklow
aee7b565b2
unify 72 magic number behind named constant 2020-05-08 01:27:21 -05:00
Nick Krecklow
7993ac0077
do not append serverId in getPingHistory entries 2020-05-08 01:25:38 -05:00
Nick Krecklow
c2494af82d
use a single, shared timestamps array between all pings 2020-05-08 01:22:07 -05:00
Nick Krecklow
3ddb2c9a08
work on bulking updateServer payloads and single timestamps 2020-05-08 00:36:15 -05:00
Nick Krecklow
ea3f237bba
send existing graphPeakData, if any, in placeholder update 2020-04-29 04:27:10 -05:00
Nick Krecklow
7322b8dc82
merge updateHistoryGraph behavior into update flag 2020-04-29 04:21:50 -05:00
Nick Krecklow
be92449d52
use serverId in protocol instead of legacy info object 2020-04-29 04:01:10 -05:00
Nick Krecklow
0402df0bc6
test fix for historical graph retaining too much data 2020-04-22 17:30:47 -05:00
Nick Krecklow
e226066a61
fix records being overwritten at boot 2020-04-21 18:51:29 -05:00
Nick Krecklow
2a3f177826
fix invalid object format return for #filterError 2020-04-21 18:11:29 -05:00
Nick Krecklow
4d66241ada
trim error messages sent to frontend 2020-04-21 18:10:07 -05:00
Nick Krecklow
ef2f2bd204
fix #getNextProtocolVersion crash from Bedrock having undefined versions 2020-04-21 18:02:29 -05:00
Nick Krecklow
4d13965e6b
Backend cleanup (#146)
* Add ServerRegistration, begin refactoring to match frontend

* move graphData logic into ServerRegistration

* move ping updates/history into ServerRegistration

* start updating main app entry methods

* fix default rates.updateMojangStatus

* fix record loading delays on freshly booted instances

* move database loading logic to method + callback

* use data in frontend for type lookup instead of ping

* cleanup app.js

* reorganize methods to improve flow

* avoid useless mojang updates, remove legacy fields

* rename legacy fields for consistency

* finish restructure around App model

* ensure versions are sorted by release order

* filter errors sent to frontend to avoid data leaks

* fix version listing behavior on frontend

* 5.1.0
2020-04-21 17:59:53 -05:00