From 088da2951ac98afeaf98d817cd25557de446c764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Sun, 26 Feb 2023 12:29:46 -0800 Subject: [PATCH] fix(progress): extraction should be based on node count (minus root node) --- crates/node-maintainer/src/maintainer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/node-maintainer/src/maintainer.rs b/crates/node-maintainer/src/maintainer.rs index 932eb4e4..dba74b55 100644 --- a/crates/node-maintainer/src/maintainer.rs +++ b/crates/node-maintainer/src/maintainer.rs @@ -208,7 +208,7 @@ impl NodeMaintainer { pub async fn extract_to(&self, path: impl AsRef) -> Result<(), NodeMaintainerError> { #[cfg(not(target_arch = "wasm32"))] let pb = if self.progress_bar { - ProgressBar::new(self.graph.inner.edge_count() as u64).with_style( + ProgressBar::new(self.graph.inner.node_count() as u64 - 1).with_style( ProgressStyle::default_bar() .template("💾 {bar:40} [{pos}/{len}] {wide_msg:.dim}") .unwrap(),