internal: Add some additional status ouput

This commit is contained in:
Lukas Wirth 2023-04-22 09:34:47 +02:00
parent e7285507f6
commit 63e3bf118d
2 changed files with 175 additions and 72 deletions

View file

@ -90,6 +90,12 @@ fn memusage_linux() -> MemoryUsage {
#[derive(Default, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy)]
pub struct Bytes(isize);
impl Bytes {
pub fn new(bytes: isize) -> Bytes {
Bytes(bytes)
}
}
impl Bytes {
pub fn megabytes(self) -> isize {
self.0 / 1024 / 1024