Show both database and documents database sizes

This commit is contained in:
Clément Renault 2020-08-10 14:37:18 +02:00
parent a4e0f3f724
commit 883a8109c8
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
5 changed files with 22 additions and 22 deletions

View file

@ -63,5 +63,8 @@ $('#docs-count').text(function(index, text) {
// Make the database a little bit easier to read
$('#db-size').text(function(index, text) {
return filesize(parseInt(text))
let arr = text.split("+");
let database_size = filesize(parseInt(arr[0]));
let documents_size = filesize(parseInt(arr[1]));
return `${database_size} + ${documents_size}`
});