truememory-mirror 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mirror.js +2 -1
- package/package.json +1 -1
package/bin/mirror.js
CHANGED
|
@@ -284,7 +284,8 @@ async function main() {
|
|
|
284
284
|
|
|
285
285
|
try {
|
|
286
286
|
await pollStatus(result.profile_id, args.apiUrl, (status) => {
|
|
287
|
-
|
|
287
|
+
const reported = Math.round((status.progress || 0) * 100);
|
|
288
|
+
if (reported > serverPct) serverPct = reported;
|
|
288
289
|
if (serverPct > displayPct) renderProgress();
|
|
289
290
|
});
|
|
290
291
|
} catch (err) {
|