bottom 0.14.6

A customizable cross-platform graphical process/system monitor for the terminal. Supports Linux, macOS, and Windows.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::time::Instant;

use crate::components::time_series::{PercentTimeGraph, TimeseriesConfig};

pub struct MemWidgetState {
    pub graph: PercentTimeGraph,
}

impl MemWidgetState {
    pub fn init(config: TimeseriesConfig, autohide_timer: Option<Instant>) -> Self {
        MemWidgetState {
            graph: PercentTimeGraph::new(config, autohide_timer),
        }
    }
}