Added small web interface with the most vital stats

This commit is contained in:
Daniel committed 2021-07-12 22:05:54 +02:00
1 parent 86bd07666f
commit 8a85cfc8da
3 files changed
+21 -7

No files matched your search

+1 -1
View File
@@ -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,