ui: set default deduplication factor to 1.0

This commit is contained in:
Dietmar Maurer 2020-11-04 07:12:55 +01:00
parent e1d367df47
commit c53797f627

View File

@ -68,8 +68,10 @@ Ext.define('PBS.DataStoreInfo', {
let gcstatus = store.getById('gc-status').data.value;
let dedup = (gcstatus['index-data-bytes'] || 0)/
(gcstatus['disk-bytes'] || Infinity);
let dedup = 1.0;
if (gcstatus['disk-bytes'] > 0) {
dedup = (gcstatus['index-data-bytes'] || 0)/gcstatus['disk-bytes'];
}
let countstext = function(count) {
count = count || {};