mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 23:53:13 +09:00
Fix bad reference in inventory_sync stat request
This commit is contained in:
1 parent
60e434e4ac
commit
4a29c13acb
1 file changed
+1
-1
@@ -65,7 +65,7 @@ class MasterPlugin extends libPlugin.BaseMasterPlugin {
|
|||||||
name,
|
name,
|
||||||
length: JSON.stringify(this.inventories.get(name)).length,
|
length: JSON.stringify(this.inventories.get(name)).length,
|
||||||
}))
|
}))
|
||||||
.sort((a, b) => a.stringified.length - b.stringified.length);
|
.sort((a, b) => a.length - b.length);
|
||||||
return {
|
return {
|
||||||
database_size: inventories.map(x => x.length).reduce((a, b) => b - a, 0),
|
database_size: inventories.map(x => x.length).reduce((a, b) => b - a, 0),
|
||||||
database_entries: inventories.length,
|
database_entries: inventories.length,
|
||||||
|
|||||||
Reference in new issue
Block a user