Skip to content

Commit

Permalink
Clarify docs about units of SCCACHE_IDLE_TIMEOUT
Browse files Browse the repository at this point in the history
  • Loading branch information
gnaaman-dn authored and sylvestre committed Mar 6, 2023
1 parent 924dcbb commit fd2df77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ configuration variables
* `SCCACHE_ALLOW_CORE_DUMPS` to enable core dumps by the server
* `SCCACHE_CONF` configuration file path
* `SCCACHE_CACHED_CONF`
* `SCCACHE_IDLE_TIMEOUT` how long the local daemon process waits for more client requests before exiting. Set to `0` to run sccache permanently
* `SCCACHE_IDLE_TIMEOUT` how long the local daemon process waits for more client requests before exiting, in seconds. Set to `0` to run sccache permanently
* `SCCACHE_STARTUP_NOTIFY` specify a path to a socket which will be used for server completion notification
* `SCCACHE_MAX_FRAME_LENGTH` how much data can be transferred between client and server
* `SCCACHE_NO_DAEMON` set to `1` to disable putting the server to the background
Expand Down
2 changes: 1 addition & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pub enum ServerStartup {
Err { reason: String },
}

/// Get the time the server should idle for before shutting down.
/// Get the time the server should idle for before shutting down, in seconds.
fn get_idle_timeout() -> u64 {
// A value of 0 disables idle shutdown entirely.
env::var("SCCACHE_IDLE_TIMEOUT")
Expand Down

0 comments on commit fd2df77

Please sign in to comment.