mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Show both database and documents database sizes
This commit is contained in:
parent
a4e0f3f724
commit
883a8109c8
5 changed files with 22 additions and 22 deletions
|
@ -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}`
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue