aboutsummaryrefslogtreecommitdiff
path: root/weed/command/benchmark.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command/benchmark.go')
-rw-r--r--weed/command/benchmark.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/command/benchmark.go b/weed/command/benchmark.go
index 326e0090c..2b9991088 100644
--- a/weed/command/benchmark.go
+++ b/weed/command/benchmark.go
@@ -371,6 +371,9 @@ func tcpFileGet(volumeServer, fid string) (bytesRead int, err error) {
}
// println("resp size", len(resp.Data))
bytesRead += len(resp.Data)
+ if resp.IsLast {
+ return nil
+ }
}
})