rustfmt the code
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
use sysinfo::{System};
|
|
||||||
use regex::Regex;
|
use regex::Regex;
|
||||||
use std::fs;
|
use std::fs;
|
||||||
|
use sysinfo::System;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let system = System::new_all();
|
let system = System::new_all();
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
|
use libc::{c_char, c_int, execvp, PRIO_PROCESS};
|
||||||
use std::env;
|
use std::env;
|
||||||
|
use std::io::{Error, Write};
|
||||||
use std::process;
|
use std::process;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
use libc::{c_char, c_int, execvp, PRIO_PROCESS};
|
|
||||||
use std::io::{Error, Write};
|
|
||||||
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let args: Vec<String> = env::args().collect();
|
let args: Vec<String> = env::args().collect();
|
||||||
@ -29,6 +28,4 @@ use std::io::{Error, Write};
|
|||||||
}
|
}
|
||||||
|
|
||||||
println!("Nice value of process {} set to {}", pid, nice_value);
|
println!("Nice value of process {} set to {}", pid, nice_value);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user