Skip to content

Commit

Permalink
fix for issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Hauser committed Sep 12, 2016
1 parent cba8a99 commit d72433c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kvmtop.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ func updateVirtualMachineLists() {
cmd.Stdout = &pids
err := cmd.Run()
if err != nil {
screen.MovePrint(1, 0, fmt.Sprintf("no virtual machines for %s", QEMU_BINARY_NAME))
if !OUT_BATCH {
screen.MovePrint(1, 0, fmt.Sprintf("no virtual machines for %s", QEMU_BINARY_NAME))
}
return
}
vmPpids := strings.Split(pids.String(), " ")
Expand Down

0 comments on commit d72433c

Please sign in to comment.