mirror of
https://github.com/containers/youki
synced 2024-05-10 01:26:14 +02:00
parent
36bc63f4f2
commit
21b62da57f
|
@ -64,7 +64,7 @@ const BLKIO_IO_SERVICE_BYTES: &str = "blkio.io_service_bytes_recursive";
|
||||||
// Format: Major:Minor Type Ops
|
// Format: Major:Minor Type Ops
|
||||||
const BLKIO_IO_SERVICED: &str = "blkio.io_serviced_recursive";
|
const BLKIO_IO_SERVICED: &str = "blkio.io_serviced_recursive";
|
||||||
// Total time between request dispatch and request completion
|
// Total time between request dispatch and request completion
|
||||||
//// Format: Major:Minor Type Time(ns)
|
/// Format: Major:Minor Type Time(ns)
|
||||||
const BLKIO_IO_SERVICE_TIME: &str = "blkio.io_service_time_recursive";
|
const BLKIO_IO_SERVICE_TIME: &str = "blkio.io_service_time_recursive";
|
||||||
// Total time spend waiting in the scheduler queues for service
|
// Total time spend waiting in the scheduler queues for service
|
||||||
// Format: Major:Minor Type Time(ns)
|
// Format: Major:Minor Type Time(ns)
|
||||||
|
|
|
@ -19,7 +19,7 @@ impl TryFrom<&str> for Signal {
|
||||||
fn try_from(s: &str) -> Result<Self, Self::Error> {
|
fn try_from(s: &str) -> Result<Self, Self::Error> {
|
||||||
use NixSignal::*;
|
use NixSignal::*;
|
||||||
|
|
||||||
Ok(match s.to_ascii_uppercase().as_str() {
|
Ok(Signal(match s.to_ascii_uppercase().as_str() {
|
||||||
"1" | "HUP" | "SIGHUP" => SIGHUP,
|
"1" | "HUP" | "SIGHUP" => SIGHUP,
|
||||||
"2" | "INT" | "SIGINT" => SIGINT,
|
"2" | "INT" | "SIGINT" => SIGINT,
|
||||||
"3" | "QUIT" | "SIGQUIT" => SIGQUIT,
|
"3" | "QUIT" | "SIGQUIT" => SIGQUIT,
|
||||||
|
@ -52,8 +52,7 @@ impl TryFrom<&str> for Signal {
|
||||||
"30" | "PWR" | "SIGPWR" => SIGPWR,
|
"30" | "PWR" | "SIGPWR" => SIGPWR,
|
||||||
"31" | "SYS" | "SIGSYS" => SIGSYS,
|
"31" | "SYS" | "SIGSYS" => SIGSYS,
|
||||||
_ => return Err(SignalError::InvalidSignal(s.to_string())),
|
_ => return Err(SignalError::InvalidSignal(s.to_string())),
|
||||||
})
|
}))
|
||||||
.map(Signal)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
[toolchain]
|
[toolchain]
|
||||||
profile="default"
|
profile="default"
|
||||||
channel="1.72.0"
|
channel="1.74.1"
|
||||||
|
|
Loading…
Reference in New Issue