You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2020/04/01 12:54:17 UTC

[couchdb-fauxton] 01/01: For db use external size if available

This is an automated email from the ASF dual-hosted git repository.

garren pushed a commit to branch add-external-size
in repository https://gitbox.apache.org/repos/asf/couchdb-fauxton.git

commit 8f880abf663de6269a3545f36588b84f8dd85461
Author: Garren Smith <ga...@gmail.com>
AuthorDate: Wed Apr 1 14:54:02 2020 +0200

    For db use external size if available
---
 app/addons/databases/stores.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/addons/databases/stores.js b/app/addons/databases/stores.js
index ce2a383..06c1757 100644
--- a/app/addons/databases/stores.js
+++ b/app/addons/databases/stores.js
@@ -113,7 +113,7 @@ const DatabasesStoreConstructor = FauxtonAPI.Store.extend({
       return {};
     }
     const {sizes} = details;
-    const dataSize = (sizes && sizes.active) || details.data_size || 0;
+    const dataSize = (sizes && sizes.active) || (sizes && sizes.external) || details.data_size || 0;
 
     return {
       dataSize: Helpers.formatSize(dataSize),