Skip to content

Commit

Permalink
Fix typo and spelling
Browse files Browse the repository at this point in the history
Signed-off-by: Arnaud Quette <[email protected]>
  • Loading branch information
aquette committed Feb 26, 2019
1 parent 3948f09 commit 155e795
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docs/man/upscli_readline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ ERR messages from linkman:upsd[8] are detected and will cause this
function to return -1.

The difference between the two functions is that *upscli_readline_timeout()*
let the caller decide the amount of time ('timeout' seconds) after which it
lets the caller decide the amount of time ('timeout' seconds) after which it
should give up and return, whereas *upscli_readline()* does not offer this
freedom.
freedom, and uses NUT default network timeout (5 seconds).

RETURN VALUE
------------
Expand Down
4 changes: 2 additions & 2 deletions docs/man/upscli_sendline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ The data in 'buf' must be a fully formatted protocol command as no
parsing of the buffer occurs within this function.

The difference between the two functions is that *upscli_sendline_timeout()*
let the caller decide the amount of time ('timeout' seconds) after which it
lets the caller decide the amount of time ('timeout' seconds) after which it
should give up and return, whereas *upscli_sendline()* does not offer this
freedom.
freedom, and uses an immediate timeout (0 second).

RETURN VALUE
------------
Expand Down
2 changes: 1 addition & 1 deletion docs/man/upscmd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The command will also block until an actual result is provided from the driver,
or the timeout is reached (see *-t*).

*-t* 'seconds'::
Set a timeout when using *-w*. Default to 10 seconds.
Set a timeout when using *-w*. Defaults to 10 seconds.

'ups'::
Connect to this UPS. The format is `upsname[@hostname[:port]]`. The default
Expand Down
2 changes: 1 addition & 1 deletion docs/man/upsrw.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ The command will also block until an actual result is provided from the driver,
or the timeout is reached (see *-t*).

*-t* 'seconds'::
Set a timeout when using *-w*. Default to 10 seconds.
Set a timeout when using *-w*. Defaults to 10 seconds.

'ups'::
View or change the settings on this UPS. The format for this option is
Expand Down
6 changes: 3 additions & 3 deletions docs/nut-names.txt
Original file line number Diff line number Diff line change
Expand Up @@ -625,9 +625,9 @@ Instant commands
| Name | Description
| load.off | Turn off the load immediately
| load.on | Turn on the load immediately
| load.off.delay | Turn off the load possibly after a delay
| load.on.delay | Turn on the load possibly after a delay
| shutdown.return | Turn off the load possibly after a delay
| load.off.delay | Turn off the load possibly after a delay
| load.on.delay | Turn on the load possibly after a delay
| shutdown.return | Turn off the load possibly after a delay
and return when power is back
| shutdown.stayoff | Turn off the load possibly after a delay
and remain off even if power returns
Expand Down
2 changes: 1 addition & 1 deletion include/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ extern "C" {

extern const char *UPS_VERSION;

/** @brief Default timeout (in seconds) for network opereations, as used by `upsclient` and `nut-scanner`. */
/** @brief Default timeout (in seconds) for network operations, as used by `upsclient` and `nut-scanner`. */
#define DEFAULT_NETWORK_TIMEOUT 5

/** @brief Default timeout (in seconds) for retrieving the result of a `TRACKING`-enabled operation (e.g. `INSTCMD`, `SET VAR`). */
Expand Down

0 comments on commit 155e795

Please sign in to comment.