From 328428ace4ca0167305b1a4ed5206079c72e3480 Mon Sep 17 00:00:00 2001 From: Amit Levy Date: Sun, 22 Jan 2023 20:13:15 +0200 Subject: [PATCH] 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 --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 8e8103f..3d50982 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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, - /// 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, - /// Period of time in nanoseconds. + /// Period of time in microseconds. pub period: Option, /// This is currently a no-operation. pub realtime_runtime: Option,