Skip to content

Commit

Permalink
[RELEASE STABLE] cmd/get/tail: only read 150 bytes of data.
Browse files Browse the repository at this point in the history
  • Loading branch information
antony-jr committed Nov 5, 2023
1 parent 8eb7b45 commit c404aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/get/tail.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func TailRemoteStdout(host string, privKey string, sum string) chan string {
output := make(chan string)
go func() {
for {
command := fmt.Sprintf("tail -f -n 5 /tmp/%s.ham.stdout \n", sum)
command := fmt.Sprintf("tail -F -c 150 /tmp/%s.ham.stdout \n", sum)
client, err := GetSSHClient(host, privKey)
if err != nil {
time.Sleep(time.Second * time.Duration(5))
Expand Down

0 comments on commit c404aa9

Please sign in to comment.