aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2014-03-10 13:34:06 -0700
committerChris Lu <chris.lu@gmail.com>2014-03-10 13:34:06 -0700
commitc81f85e16d708171868bd7f10ca588e378f51f11 (patch)
tree1dbd0e780aa2b60bd0ed277f577440abd46681d7
parent45757b8b555bbf2e82ecad040f9d1bb98c45f8db (diff)
downloadseaweedfs-c81f85e16d708171868bd7f10ca588e378f51f11.tar.xz
seaweedfs-c81f85e16d708171868bd7f10ca588e378f51f11.zip
add percentage of benchmark progress
plan to release v0.48
-rw-r--r--go/weed/benchmark.go5
-rw-r--r--go/weed/version.go2
2 files changed, 5 insertions, 2 deletions
diff --git a/go/weed/benchmark.go b/go/weed/benchmark.go
index 2381bdecc..99faf15b0 100644
--- a/go/weed/benchmark.go
+++ b/go/weed/benchmark.go
@@ -10,6 +10,7 @@ import (
"math"
"math/rand"
"os"
+ "runtime"
"strings"
"sync"
"time"
@@ -83,6 +84,8 @@ func runbenchmark(cmd *Command, args []string) bool {
fileIdLineChan := make(chan string)
b.vid2server = make(map[string]string)
+ fmt.Printf("This is Weed File System version %s %s %s\n", VERSION, runtime.GOOS, runtime.GOARCH)
+
if *b.write {
writeStats = newStats()
idChan := make(chan int)
@@ -278,7 +281,7 @@ func (s *stats) checkProgress(testName string, finishChan chan bool) {
case <-finishChan:
break
case <-ticker:
- fmt.Printf("Completed %d of %d requests, %3d%%\n", s.completed, *b.numberOfFiles, s.completed*100 / *b.numberOfFiles)
+ fmt.Printf("Completed %d of %d requests, %3.1f%%\n", s.completed, *b.numberOfFiles, float64(s.completed)*100/float64(*b.numberOfFiles))
}
}
}
diff --git a/go/weed/version.go b/go/weed/version.go
index 9b6ca63e1..401cc9aed 100644
--- a/go/weed/version.go
+++ b/go/weed/version.go
@@ -6,7 +6,7 @@ import (
)
const (
- VERSION = "0.47"
+ VERSION = "0.48"
)
var cmdVersion = &Command{