p-e-w / hegemon Goto Github PK
View Code? Open in Web Editor NEWA modular system monitor written in Rust
License: GNU General Public License v3.0
A modular system monitor written in Rust
License: GNU General Public License v3.0
Updates currently block the main thread, and thus user interaction. This should not be the case.
Data streams are completely independent of each other, so there is no reason not to update them in parallel.
Did fail to compile hegemon on my machine
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
here's the steps I took:
sudo apt install libsensors4-dev
sudo apt-get install curl
curl https://sh.rustup.rs -sSf | sh
cargo install hegemon
sudo apt install cargo
cargo install hegemon
Result:
error[E0599]: no method named `as_usize` found for type `systemstat::ByteSize` in the current scope
--> /home/silvan/.cargo/registry/src/github.com-1ecc6299db9ec823/hegemon-0.1.0/src/providers/memory.rs:43:35
|
43 | Some(memory.total.as_usize() as f64),
| ^^^^^^^^
error[E0369]: binary operation `-` cannot be applied to type `systemstat::ByteSize`
--> /home/silvan/.cargo/registry/src/github.com-1ecc6299db9ec823/hegemon-0.1.0/src/providers/memory.rs:37:44
|
37 | Some((memory.total - memory.free).as_usize() as f64)
| ------------ ^ ----------- systemstat::ByteSize
| |
| systemstat::ByteSize
|
= note: an implementation of `std::ops::Sub` might be missing for `systemstat::ByteSize`
error[E0599]: no method named `as_usize` found for type `systemstat::ByteSize` in the current scope
--> /home/silvan/.cargo/registry/src/github.com-1ecc6299db9ec823/hegemon-0.1.0/src/providers/memory.rs:64:46
|
64 | Some(meminfo[SWAP_TOTAL].as_usize() as f64),
| ^^^^^^^^
error[E0369]: binary operation `-` cannot be applied to type `systemstat::ByteSize`
--> /home/silvan/.cargo/registry/src/github.com-1ecc6299db9ec823/hegemon-0.1.0/src/providers/memory.rs:58:55
|
58 | Some((meminfo[SWAP_TOTAL] - meminfo[SWAP_FREE]).as_usize() as f64)
| ------------------- ^ ------------------ systemstat::ByteSize
| |
| systemstat::ByteSize
|
= note: an implementation of `std::ops::Sub` might be missing for `systemstat::ByteSize`
Hi, your work looks interesting, but I can not compile the program:
--> src/model.rs:209:56
|
209 | ScrollAnchor::Bottom => active_streams[..=self.scroll_index].iter().rev().collect::<Vec<_>>(),
| ^^^^^^^^^^^^^^^^^^^^
error[E0658]: inclusive range syntax is experimental (see issue #28237)
--> src/view.rs:68:27
|
68 | for i in (1..=full_intervals).rev() {
| ^^^^^^^^^^^^^^^^^^
error[E0658]: inclusive range syntax is experimental (see issue #28237)
--> src/view.rs:87:46
|
87 | ScrollAnchor::Bottom => (0..=self.scroll_index).rev().collect::<Vec<_>>(),
| ^^^^^^^^^^^^^^^^^^^^^
error[E0658]: inclusive range syntax is experimental (see issue #28237)
--> src/view.rs:267:23
|
267 | let values = (1..=graph_width).rev().map(|i| if i <= self.values.len() {
| ^^^^^^^^^^^^^^^
error: aborting due to 4 previous errors
error: failed to compile `hegemon v0.1.0`, intermediate artifacts can be found at `/tmp/cargo-install.POe4RVRjfECW`
Caused by:
Could not compile `hegemon`.
# uname -a
Linux 4.15.0-34-generic #37-Ubuntu SMP Mon Aug 27 15:21:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
# cargo version
cargo 0.26.0
In CPUStreamProvider
the streams for each core currently have to retrieve the full CPU statistics whenever value
is called.
This work duplication could be reduced if stream providers were themselves invoked once per update cycle. The statistics could be retrieved by the provider then, and shared by all individual streams belonging to it.
Scrolling a list with variable-height items is a nontrivial task, and there are still some things that don't work as they should when the terminal is resized or streams are expanded/collapsed.
Hi, under mate-terminal,
the โ
characters sadly appear garbled & overlapping:
Was able to work around it,
by replacing as follows in model.rs the two instances of:
-MenuItem::new("\u{1F805}\u{1F807}", "Select"),
+MenuItem::new("\u{21C5}", "Select"),
Hopefully the above helps / sheds some light as to why this happens?
All the best
Do you intend to tag releases from time to time? I'd like to submit hegemon as a NixOS package.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.