mirror of
https://github.com/kata-containers/cgroups-rs.git
synced 2026-08-05 02:13:23 +00:00
Fixed documentation for cpu quota and period
nanoseconds -> microseonds Noticed while debugging, also fits Red Hat documentation https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/resource_management_guide/sec-cpu , and I read the implementation to confirm Signed-off-by: Amit Levy <amitlevy49@gmail.com>
This commit is contained in:
@@ -604,9 +604,9 @@ pub struct CpuResources {
|
||||
/// Weight of how much of the total CPU time should this control group get. Note that this is
|
||||
/// hierarchical, so this is weighted against the siblings of this control group.
|
||||
pub shares: Option<u64>,
|
||||
/// In one `period`, how much can the tasks run in nanoseconds.
|
||||
/// In one `period`, how much can the tasks run in microseconds.
|
||||
pub quota: Option<i64>,
|
||||
/// Period of time in nanoseconds.
|
||||
/// Period of time in microseconds.
|
||||
pub period: Option<u64>,
|
||||
/// This is currently a no-operation.
|
||||
pub realtime_runtime: Option<i64>,
|
||||
|
||||
Reference in New Issue
Block a user