mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 16:13:12 +09:00
Fix total db size calculation for inv sync (#598)
This commit is contained in:
1 parent
e3abf8ba33
commit
a70490648f
1 file changed
+1
-1
@@ -190,7 +190,7 @@ export class ControllerPlugin extends BaseControllerPlugin {
|
|||||||
}))
|
}))
|
||||||
.sort((a, b) => b.length - a.length);
|
.sort((a, b) => b.length - a.length);
|
||||||
return new msg.DatabaseStatsRequest.Response(
|
return new msg.DatabaseStatsRequest.Response(
|
||||||
playerDatastore.map(x => x.length).reduce((a, b) => b - a, 0),
|
playerDatastore.map(x => x.length).reduce((acc, val) => acc + val, 0),
|
||||||
playerDatastore.length,
|
playerDatastore.length,
|
||||||
{
|
{
|
||||||
name: playerDatastore[0] && playerDatastore[0].name || "-",
|
name: playerDatastore[0] && playerDatastore[0].name || "-",
|
||||||
|
|||||||
Reference in new issue
Block a user