Skip to content

Commit 85d4ed0

Browse files
committed
refactor to bash script
1 parent 6fcfd35 commit 85d4ed0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ When we have a large number of matching keys, and are performing a `type` check
171171

172172
The defaults themselves are set in the script, and overridden, as follows:
173173
```shell
174-
local eachLimit=${eachLimit-1000} # limit of keys to scan, pass 0 to disable
175-
local scanSleep=${scanSleep-.250} # sleep 250ms between each scan
176-
local eachCommandSleep=${eachCommandSleep-.025} # sleep 25ms between each command
177-
local loadavgLimit=${loadavgLimit-1} # sleep while local loadavg above this threshold
178-
local loadavgKey=${loadavgKey-''} # ascertain loadavg from Redis key on target instance
179-
local uptimeRemote=${uptimeRemote-''} # ascertain loadavg via ssh to remote Redis host
174+
eachLimit=${eachLimit-1000} # limit of keys to scan, pass 0 to disable
175+
scanSleep=${scanSleep-0.250} # sleep 250ms between each scan
176+
eachCommandSleep=${eachCommandSleep-0.025} # sleep 25ms between each command
177+
loadavgLimit=${loadavgLimit-1} # sleep while local loadavg above this threshold
178+
loadavgKey=${loadavgKey-} # ascertain loadavg from Redis key on target instance
179+
uptimeRemote=${uptimeRemote-} # ascertain loadavg via ssh to remote Redis host
180180
```
181181

182182
So the defaults can be overridden via the command-line passing, or via shell `export`

0 commit comments

Comments
 (0)