mirror of
https://github.com/NotAShelf/microfetch.git
synced 2025-12-14 00:21:00 +00:00
fix formatting
This commit is contained in:
parent
5a484b0769
commit
d27e8b36c4
2 changed files with 13 additions and 13 deletions
24
src/dots.rs
24
src/dots.rs
|
|
@ -5,21 +5,21 @@ macro_rules! GLYPH {() => {""}}
|
||||||
macro_rules! GAP {() => {" "}}
|
macro_rules! GAP {() => {" "}}
|
||||||
|
|
||||||
const NO_COLORS_STR: &str = concat!(
|
const NO_COLORS_STR: &str = concat!(
|
||||||
GLYPH!(), GAP!(),
|
GLYPH!(), GAP!(),
|
||||||
GLYPH!(), GAP!(),
|
GLYPH!(), GAP!(),
|
||||||
GLYPH!(), GAP!(),
|
GLYPH!(), GAP!(),
|
||||||
GLYPH!(), GAP!(),
|
GLYPH!(), GAP!(),
|
||||||
GLYPH!(), GAP!(),
|
GLYPH!(), GAP!(),
|
||||||
GLYPH!(),
|
GLYPH!(),
|
||||||
);
|
);
|
||||||
|
|
||||||
const COLORS_STR: &str = concat!(
|
const COLORS_STR: &str = concat!(
|
||||||
BLUE!(), GLYPH!(), GAP!(),
|
BLUE!(), GLYPH!(), GAP!(),
|
||||||
CYAN!(), GLYPH!(), GAP!(),
|
CYAN!(), GLYPH!(), GAP!(),
|
||||||
GREEN!(), GLYPH!(), GAP!(),
|
GREEN!(), GLYPH!(), GAP!(),
|
||||||
YELLOW!(), GLYPH!(), GAP!(),
|
YELLOW!(), GLYPH!(), GAP!(),
|
||||||
RED!(), GLYPH!(), GAP!(),
|
RED!(), GLYPH!(), GAP!(),
|
||||||
MAGENTA!(), GLYPH!(), RESET!(),
|
MAGENTA!(), GLYPH!(), RESET!(),
|
||||||
);
|
);
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
uptime: get_current()?,
|
uptime: get_current()?,
|
||||||
memory_usage: get_memory_usage()?,
|
memory_usage: get_memory_usage()?,
|
||||||
storage: get_root_disk_usage()?,
|
storage: get_root_disk_usage()?,
|
||||||
dots: print_dots(),
|
dots: print_dots(),
|
||||||
};
|
};
|
||||||
print_system_info(&fields)?;
|
print_system_info(&fields)?;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue