Skip to content

Commit

Permalink
Merge branch 'yuji/fix-available-memory' (#1801)
Browse files Browse the repository at this point in the history
* origin/yuji/fix-available-memory:
  add changelog
  fix available_memory
  • Loading branch information
Fraccaman committed Aug 11, 2023
2 parents 3547ccd + ac49ed5 commit ab6daba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .changelog/unreleased/bug-fixes/1801-fix-available-memory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Fix available_memory size
([\#1801](https://github.com/anoma/namada/issues/1801))
2 changes: 1 addition & 1 deletion apps/src/lib/node/ledger/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ async fn run_aux_setup(
// Find the system available memory
let available_memory_bytes = Lazy::new(|| {
let sys = System::new_with_specifics(RefreshKind::new().with_memory());
let available_memory_bytes = sys.available_memory() * 1024;
let available_memory_bytes = sys.available_memory();
tracing::info!(
"Available memory: {}",
Byte::from_bytes(available_memory_bytes as u128)
Expand Down

0 comments on commit ab6daba

Please sign in to comment.