Skip to content

Commit

Permalink
Improve time sleep in client
Browse files Browse the repository at this point in the history
  • Loading branch information
cpl committed Dec 28, 2019
1 parent e489fbf commit 568aa22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/exodus-client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,11 @@ func main() {
counter := 0
size := *dataChunkSize

sleepTime := *timed
for {
time.Sleep(time.Duration(*timed) * time.Second)
if sleepTime > 0 {
time.Sleep(time.Duration(sleepTime) * time.Second)
}

read, err := scanner.Read(buffer[:size])
if read == 0 {
Expand Down

0 comments on commit 568aa22

Please sign in to comment.