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