From 635cd2a06fdbf47458a0f79a239a3a7037592dc2 Mon Sep 17 00:00:00 2001 From: Eli Snow Date: Tue, 1 Sep 2020 16:57:17 -0600 Subject: [PATCH] Fixes #29 --- Cargo.lock | 10 ---------- src/stats.rs | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1af7296f..1198f0b8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1265,16 +1265,6 @@ name = "scopeguard" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -[[package]] -name = "scripting_js" -version = "0.0.0" -dependencies = [ - "futures 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.115 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_json 1.0.57 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio 0.2.22 (registry+https://github.com/rust-lang/crates.io-index)", -] - [[package]] name = "security-framework" version = "0.4.4" diff --git a/src/stats.rs b/src/stats.rs index 98306ae9..860d8adf 100644 --- a/src/stats.rs +++ b/src/stats.rs @@ -497,7 +497,7 @@ impl Stats { &self.tags, self.format, self.bucket_size, - remaining_seconds, + remaining_seconds.or(Some(0)), ); print_string.push_str(&piece);