From c6b2d016477fee97cb3cd77b790a08dd3ffa2545 Mon Sep 17 00:00:00 2001 From: ramiroaisen <52116153+ramiroaisen@users.noreply.github.com> Date: Thu, 19 Oct 2023 14:01:16 -0300 Subject: [PATCH] fix: deployment shutdown connection bytes divide by 1000 --- rs/packages/db/src/models/deployment/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rs/packages/db/src/models/deployment/mod.rs b/rs/packages/db/src/models/deployment/mod.rs index 73a4c988..3ffb8774 100644 --- a/rs/packages/db/src/models/deployment/mod.rs +++ b/rs/packages/db/src/models/deployment/mod.rs @@ -165,7 +165,7 @@ pub async fn check_now() -> Result<(), mongodb::error::Error> { doc! { "$set": { StreamConnectionLite::KEY_TRANSFER_BYTES: { - "$multiply": [ KEY_DU, 128_000 / 8 ] + "$multiply": [ KEY_DU, 128_000 / 1000 / 8 ] } } }, @@ -237,7 +237,7 @@ pub async fn check_now() -> Result<(), mongodb::error::Error> { doc! { "$set": { StreamConnection::KEY_TRANSFER_BYTES: { - "$multiply": [ KEY_DURATION_MS, 128_000 / 8 ] + "$multiply": [ KEY_DURATION_MS, 128_000 / 1000 / 8 ] } } },