|
153 | 153 | F = qf(f, 'SELECT doc_id, filename, uid, location, ingested FROM files'); |
154 | 154 | fileDir = fullfile(folders{f}, '.ndi', 'files'); |
155 | 155 | nRecorded = nRecorded + numel(F); |
156 | | - prog.start('files', sprintf('Checking %d file(s)', numel(F)), numel(F)); |
| 156 | + prog.start(sprintf('files %d', f), sprintf('Checking %d file(s) of database %d', numel(F), f), numel(F)); |
157 | 157 | for k = 1:numel(F) |
158 | | - prog.step('files', k); |
| 158 | + prog.step(sprintf('files %d', f), k); |
159 | 159 | if F(k).ingested |
160 | 160 | nIngested = nIngested + 1; |
161 | 161 | p = fullfile(fileDir, F(k).uid); |
|
182 | 182 | 'WHERE f.ingested = 1']); |
183 | 183 | fileDir = fullfile(folders{f}, '.ndi', 'files'); |
184 | 184 | nB = nB + numel(B); |
185 | | - prog.start('hashes', sprintf('Hashing %d file(s)', numel(B)), numel(B)); |
| 185 | + prog.start(sprintf('hashes %d', f), sprintf('Hashing %d file(s) of database %d', numel(B), f), numel(B)); |
186 | 186 | for k = 1:numel(B) |
187 | | - prog.step('hashes', k); |
| 187 | + prog.step(sprintf('hashes %d', f), k); |
188 | 188 | [h, alg] = recordedHash(jsondecode(B(k).body)); |
189 | 189 | if isempty(h) || ~strcmpi(alg, 'MD5') |
190 | 190 | noHash = noHash + 1; |
|
0 commit comments