From a3d9d22779970ab65d23c5fb3175f5495a469758 Mon Sep 17 00:00:00 2001 From: Glauber Costa Date: Sat, 14 Oct 2023 20:15:02 -0400 Subject: [PATCH] fix description of shares behavior Fixes #615 --- glommio/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glommio/src/lib.rs b/glommio/src/lib.rs index af4e41a3b..ee2f237f9 100644 --- a/glommio/src/lib.rs +++ b/glommio/src/lib.rs @@ -107,7 +107,7 @@ //! //! This example creates two task queues: `tq1` has 2 shares, `tq2` has 1 share. //! This means that if both want to use the CPU to its maximum, `tq1` will have -//! `1/3` of the CPU time `(1 / (1 + 2))` and `tq2` will have `2/3` of the CPU +//! `2/3` of the CPU time `(2 / (1 + 2))` and `tq2` will have `1/3` of the CPU //! time. Those shares are dynamic and can be changed at any time. Notice that //! this scheduling method doesn't prevent either `tq1` no `tq2` from using 100% //! of CPU time at times in which they are the only task queue running: the