couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject [2/2] fauxton commit: updated refs/heads/master to 89f57a4
Date Tue, 08 Nov 2016 14:50:03 GMT
support data_size and disk_size


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/89f57a45
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/89f57a45
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/89f57a45

Branch: refs/heads/master
Commit: 89f57a45303375b864cc34388c57e48556ecfb89
Parents: 5cc0ee4
Author: Garren Smith <garren.smith@gmail.com>
Authored: Tue Nov 8 16:14:37 2016 +0200
Committer: Garren Smith <garren.smith@gmail.com>
Committed: Tue Nov 8 16:49:48 2016 +0200

----------------------------------------------------------------------
 app/addons/databases/stores.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/89f57a45/app/addons/databases/stores.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/stores.js b/app/addons/databases/stores.js
index 93ae88a..e0145a2 100644
--- a/app/addons/databases/stores.js
+++ b/app/addons/databases/stores.js
@@ -90,9 +90,10 @@ var DatabasesStore = FauxtonAPI.Store.extend({
     if (!details) {
       return {};
     }
+    const dataSize = details.data_size || details.disk_size || 0;
 
     return {
-      dataSize: Helpers.formatSize(details.data_size || 0),
+      dataSize: Helpers.formatSize(dataSize),
       docCount: details.doc_count,
       docDelCount: details.doc_del_count,
       showTombstoneWarning: details.doc_del_count > details.doc_count


Mime
View raw message