Giter Club home page Giter Club logo

hegemon's People

Contributors

astro avatar ikysil avatar p-e-w avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hegemon's Issues

Asynchronous updates

Updates currently block the main thread, and thus user interaction. This should not be the case.

Parallel updates

Data streams are completely independent of each other, so there is no reason not to update them in parallel.

cannot compile hegemon

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`

error[E0658]: inclusive range syntax is experimental

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

Mouse control

  • Wheel to select up/down
  • Click on stream to select it
  • Double click on stream to select and expand/collapse it

Allow stream providers to carry updatable state

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.

Additional data streams

  • GPU usage/memory/temperature
  • HDD temperature
  • Disk I/O
  • Network I/O
  • Other CPU metrics
  • Other memory metrics

Scrolling bugs

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.

โ‡… unicode characters not displayed properly

Hi, under mate-terminal,
the โ‡… characters sadly appear garbled & overlapping:
tofu

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"),
21C5

Hopefully the above helps / sheds some light as to why this happens?

All the best

Releases?

Do you intend to tag releases from time to time? I'd like to submit hegemon as a NixOS package.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.