Skip to content

Commit

Permalink
fix: deployment shutdown connection bytes divide by 1000 (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiroaisen authored Oct 19, 2023
2 parents 3b264d6 + c6b2d01 commit 8c166ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rs/packages/db/src/models/deployment/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
}
}
},
Expand Down Expand Up @@ -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 ]
}
}
},
Expand Down

0 comments on commit 8c166ee

Please sign in to comment.