mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 01:31:17 +00:00
Squashed 'tools/' changes from c7d833c..954b023
954b023Correct last commit.7732be6Add availible to the spell checker. git-subtree-dir: tools git-subtree-split:954b023392
This commit is contained in:
@@ -63,10 +63,10 @@ func (ts tests) Less(i, j int) bool {
|
||||
return ts[i].name < ts[j].name
|
||||
}
|
||||
|
||||
func (ts *tests) pick(availible int) (test, bool) {
|
||||
// pick the first test that fits in the availible hosts
|
||||
func (ts *tests) pick(available int) (test, bool) {
|
||||
// pick the first test that fits in the available hosts
|
||||
for i, test := range *ts {
|
||||
if test.hosts <= availible {
|
||||
if test.hosts <= available {
|
||||
*ts = append((*ts)[:i], (*ts)[i+1:]...)
|
||||
return test, true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user