mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-14 15:24:52 +09:00
Added small web interface with the most vital stats
This commit is contained in:
1 parent
86bd07666f
commit
8a85cfc8da
3 files changed
+21
-7
No files matched your search
@@ -63,7 +63,7 @@ class MasterPlugin extends libPlugin.BaseMasterPlugin {
|
||||
}))
|
||||
.sort((a, b) => a.stringified.length - b.stringified.length)
|
||||
return {
|
||||
database_size: inventories.reduce((a, b) => b - a, 0),
|
||||
database_size: inventories.map(x => x.length).reduce((a, b) => b - a, 0),
|
||||
database_entries: inventories.length,
|
||||
largest_entry: {
|
||||
name: inventories[0].name,
|
||||
|
||||
Reference in new issue
Block a user