sysinfo 0.8.5

Library to handle processes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 
// Sysinfo
// 
// Copyright (c) 2015 Guillaume Gomez
//

use std::fmt::{self, Debug, Formatter};
use sys::Processor;
use ::ProcessorExt;

impl Debug for Processor {
    fn fmt(&self, f: &mut Formatter) -> fmt::Result {
        write!(f, "{}: {}%", self.get_name(), self.get_cpu_usage())
    }
}