Merge branch 'master' of github.com-derailed:derailed/k9s

mine
derailed 2019-06-07 15:52:13 -06:00
commit de47c2451d
2 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,7 @@ K9s is available on Linux, OSX and Windows platforms.
* For OSX using Homebrew
```shell
brew tap derailed/k9s && brew install k9s
brew install derailed/k9s/k9s
```
* Building from source

View File

@ -20,6 +20,8 @@ func newNodeView(t string, app *appView, list resource.List) resourceViewer {
func (v *nodeView) extraActions(aa keyActions) {
aa[KeyShiftC] = newKeyAction("Sort CPU", v.sortColCmd(7, false), true)
aa[KeyShiftM] = newKeyAction("Sort MEM", v.sortColCmd(8, false), true)
aa[KeyAltC] = newKeyAction("Sort CPU%", v.sortColCmd(9, false), true)
aa[KeyAltM] = newKeyAction("Sort MEM%", v.sortColCmd(10, false), true)
}
func (v *nodeView) sortColCmd(col int, asc bool) func(evt *tcell.EventKey) *tcell.EventKey {