fix: clean code some more
This commit is contained in:
parent
17cca457b9
commit
52629de98d
1 changed files with 2 additions and 5 deletions
|
@ -66,11 +66,8 @@ fn main() {
|
|||
};
|
||||
if let Some(process) = &config.ffmpeg.process {
|
||||
if (process.niceness.unwrap_or(0)) > 0 {
|
||||
match renice(child.id(), process.niceness.unwrap_or(0)) {
|
||||
Ok(_) => {}
|
||||
Err(e) => {
|
||||
error!("Failed to renice ffmpeg process: {}", e);
|
||||
}
|
||||
if let Err(e) = renice(child.id(), process.niceness.unwrap_or(0)) {
|
||||
error!("Failed to renice ffmpeg process: {}", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue