rng: fix minor typos
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
This commit is contained in:
parent
19bc862531
commit
330d2ffdad
2 changed files with 4 additions and 4 deletions
|
|
@ -13,7 +13,7 @@ requests more bytes than the allowed limit the thread will block until the
|
|||
start of a new period. The daemon will automatically split the available
|
||||
bandwidth equally between the guest when several threads are requested.
|
||||
|
||||
Thought developed and tested with QEMU, the implemenation is based on the
|
||||
Though developed and tested with QEMU, the implementation is based on the
|
||||
vhost-user protocol and as such should be interoperable with other virtual
|
||||
machine managers. Please see below for working examples.
|
||||
|
||||
|
|
@ -48,7 +48,7 @@ machine managers. Please see below for working examples.
|
|||
|
||||
.. option:: -m, --max-bytes
|
||||
|
||||
In conjuction with the --period parameter, provides the maximum number of byte
|
||||
In conjunction with the --period parameter, provides the maximum number of byte
|
||||
per milliseconds a RNG device can generate.
|
||||
|
||||
## Examples
|
||||
|
|
|
|||
|
|
@ -448,7 +448,7 @@ mod tests {
|
|||
);
|
||||
|
||||
// Artificially set the period start time to 10 second. This will simulate a
|
||||
// condition where the the period has been exeeded and for the quota to be reset
|
||||
// condition where the the period has been exceeded and for the quota to be reset
|
||||
// to its maximum value.
|
||||
backend.time_sub(Duration::from_secs(10));
|
||||
assert!(backend
|
||||
|
|
@ -457,7 +457,7 @@ mod tests {
|
|||
|
||||
// Reset time to right now and set remaining quota to 0. This will simulate a
|
||||
// condition where the quota for a period has been exceeded and force the execution
|
||||
// thread to wait for the start of the next period before serving requets.
|
||||
// thread to wait for the start of the next period before serving requests.
|
||||
backend.time_now();
|
||||
backend.set_quota(0);
|
||||
assert!(backend
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue