Skip to content

Commit

Permalink
⬆️ Bump sysinfo from 0.29.11 to 0.30.5 (#59)
Browse files Browse the repository at this point in the history
Bumps [sysinfo](https://github.com/GuillaumeGomez/sysinfo) from 0.29.11
to 0.30.5.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/GuillaumeGomez/sysinfo/blob/master/CHANGELOG.md">sysinfo's
changelog</a>.</em></p>
<blockquote>
<h1>0.30.5</h1>
<ul>
<li>Windows: Correctly retrieve processes name on 32 bits
platforms.</li>
<li>Windows: Fix swap memory computation.</li>
</ul>
<h1>0.30.4</h1>
<ul>
<li>Windows: Fix misaligned read.</li>
</ul>
<h1>0.30.3</h1>
<ul>
<li>Improve dependency stack by updating the <code>windows</code>
dependency.</li>
</ul>
<h1>0.30.2</h1>
<ul>
<li>Add <code>ThreadKind</code> enum.</li>
<li>Add <code>Process::thread_kind</code> method.</li>
</ul>
<h1>0.30.1</h1>
<ul>
<li>Linux: Fix invalid memory information retrieval (virtual and
resident set size were reversed).</li>
</ul>
<h1>0.30.0</h1>
<ul>
<li>Split <code>System</code> into subtypes: <code>Components</code>,
<code>Disks</code>, <code>Networks</code> and <code>Users</code>.</li>
<li><code>brand</code>, <code>vendor_id</code> and
<code>frequency</code> information is not set anymore on the global
CPU.</li>
<li>Unix: Fix endless loop in user groups retrieval.</li>
<li>Unix/Windows: Fix infinite loop when retrieving various information
because of bad usage
of <code>Vec::reserve</code>.</li>
<li>Unix: Fix invalid usage of NULL pointer when retrieving user group
name.</li>
<li>Linux: Fix CPU name retrieval.</li>
<li>Linux: Remove cgroup usage from memory computation.</li>
<li>Linux: Add <code>linux-netdevs</code> feature to allow to retrieve
network devices.</li>
<li>Linux: Improve system memory information retrieval (using
<code>statm</code> file instead of <code>stat</code>).</li>
<li>Linux: Tasks are listed in processes.</li>
<li>macOS: Correctly retrieve process root directory.</li>
<li>Windows: Add warning that <code>System::load_average</code> is not
working in documentation.</li>
<li>Windows: Fix invalid use of NULL pointer when retrieving users
groups.</li>
<li>Windows: Correctly retrieve process root directory.</li>
<li>Create new <code>System::cgroup_limits</code> method.</li>
<li>Remove <code>System::refresh_system</code> method.</li>
<li><code>Disk::file_system</code> and <code>Disk::name</code> now
return an <code>Option&lt;&amp;OsStr&gt;</code>.</li>
<li>Implement <code>Display</code> trait on <code>DiskKind</code>.</li>
<li>Move from <code>winapi</code> to <code>windows</code> crate.</li>
<li>Add <code>System::cpu_arch</code>.</li>
<li>Add <code>System::refresh_pids</code> and
<code>System::refresh_pids_specifics</code>.</li>
<li><code>System::boot_time</code>, <code>System::cpu_arch</code>,
<code>System::distribution_id</code>, <code>System::host_name</code>,
<code>System::kernel_version</code>, <code>System::load_average</code>,
<code>System::long_os_version</code>, <code>System::name</code>,
<code>System::os_version</code> and <code>System::uptime</code> are
static methods.</li>
<li><code>ProcessRefreshKind</code> has a lot more of possibilities for
better control over updates.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/GuillaumeGomez/sysinfo/commits">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=sysinfo&package-manager=cargo&previous-version=0.29.11&new-version=0.30.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: a-kenji <[email protected]>
  • Loading branch information
dependabot[bot] and a-kenji authored Feb 11, 2024
1 parent 997ddc3 commit ec2d069
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
18 changes: 14 additions & 4 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 client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ freedesktop-desktop-entry = "0.5.0"
swayipc = "3.0.1"

# system monitor plugin
sysinfo = "0.29.11"
sysinfo = "0.30.5"
battery = "0.7.8"

# brave history
Expand Down
1 change: 0 additions & 1 deletion client/src/plugin/resource_monitor/cpu.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::plugin::utils::Plugin;
use sysinfo::{CpuExt, SystemExt};

pub struct CpuPlugin {
sysinfo: sysinfo::System,
Expand Down
9 changes: 4 additions & 5 deletions client/src/plugin/resource_monitor/disks.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use crate::plugin::utils::Plugin;
use anyhow::Context;
use sysinfo::{DiskExt, SystemExt};

pub struct DisksPlugin {
sysinfo: sysinfo::System,
disks: sysinfo::Disks,
entries: Vec<crate::model::Entry>,
}

Expand All @@ -29,10 +28,10 @@ impl Plugin for DisksPlugin {
}

fn update_entries(&mut self) -> anyhow::Result<()> {
self.sysinfo.refresh_all();
self.disks.refresh_list();
self.entries.clear();

for disk in self.sysinfo.disks() {
for disk in &self.disks {
let mount_point = disk
.mount_point()
.to_str()
Expand Down Expand Up @@ -63,7 +62,7 @@ impl Plugin for DisksPlugin {

fn new() -> Self {
Self {
sysinfo: sysinfo::System::new_all(),
disks: sysinfo::Disks::new(),
entries: vec![],
}
}
Expand Down
1 change: 0 additions & 1 deletion client/src/plugin/resource_monitor/memory.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::plugin::utils::Plugin;
use sysinfo::SystemExt;

pub struct MemoryPlugin {
sysinfo: sysinfo::System,
Expand Down

0 comments on commit ec2d069

Please sign in to comment.