Skip to content

Commit

Permalink
chore(deps): bump sysinfo to 0.33
Browse files Browse the repository at this point in the history
  • Loading branch information
LDeakin committed Jan 11, 2025
1 parent cee127f commit 11286ce
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Bump `itertools` to 0.14
- Bump `zarrs_opendal` to 0.5
- Bump `opendal` to 0.51
- Bump `sysinfo` to 0.33

### Removed
- Remove `zarrs_ncvar2zarr` [#26]
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ rayon = "1.10.0"
rayon_iter_concurrent_limit = "0.2.0"
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.107"
sysinfo = { version = "0.32.0", default-features = false, features = ["system"] }
sysinfo = { version = "0.33.0", default-features = false, features = ["system"] }
tempfile = "3.10.1"
thiserror = "2.0.0"
tokio = { version = "1.34.0", features = ["macros", "rt-multi-thread"] }
Expand Down
2 changes: 1 addition & 1 deletion src/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ use sysinfo::{MemoryRefreshKind, RefreshKind, System};
/// Calculates the chunk limit based on the amount of available memory.
pub fn calculate_chunk_limit(memory_per_chunk: usize) -> Result<usize, FilterError> {
let system = System::new_with_specifics(
RefreshKind::new().with_memory(MemoryRefreshKind::new().with_ram()),
RefreshKind::nothing().with_memory(MemoryRefreshKind::nothing().with_ram()),
);
let available_memory = usize::try_from(system.available_memory()).unwrap();
let available_memory_target = available_memory * 8 / 10; // 80%
Expand Down

0 comments on commit 11286ce

Please sign in to comment.