]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: DataStoreContent: improve encrypted column
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 1 Sep 2020 09:05:20 +0000 (11:05 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 1 Sep 2020 13:33:55 +0000 (15:33 +0200)
do not count files where we do not have any information

such files exist in the backup dir, but are not in the manifest
so we cannot use those files for determining if the backups are
encrypted or not

this marks encrypted/signed backups with unencrypted client.log.blob files as
encrypted/signed (respectively) instead of 'Mixed'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/DataStoreContent.js

index 6a5cec0e3696fdcf348b325e1e0bdc57e87e4c55..21623020d07915e9cf685e1e1878ee538d8320f5 100644 (file)
@@ -30,8 +30,8 @@ Ext.define('pbs-data-store-snapshots', {
                    let mode = PBS.Utils.cryptmap.indexOf(file['crypt-mode']);
                    if (mode !== -1) {
                        crypt[file['crypt-mode']]++;
+                       crypt.count++;
                    }
-                   crypt.count++;
                });
 
                return PBS.Utils.calculateCryptMode(crypt);