You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by am...@apache.org on 2020/04/02 18:18:22 UTC

[couchdb-fauxton] branch master updated: For db use external size if available (#1258)

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

amaranhao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-fauxton.git


The following commit(s) were added to refs/heads/master by this push:
     new 56cd827  For db use external size if available (#1258)
56cd827 is described below

commit 56cd827dc015cb775d8691664203f571b4dc9eae
Author: garren smith <ga...@gmail.com>
AuthorDate: Thu Apr 2 20:18:11 2020 +0200

    For db use external size if available (#1258)
    
    Co-authored-by: Antonio Maranhao <30...@users.noreply.github.com>
---
 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),