|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH RFC 33/59] controller: Add verbosity argument and update README with new instructions
From: George Dunlap <george.dunlap@xxxxxxxxxx>
Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxx>
---
main.go | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/main.go b/main.go
index ddb768c..2aa8bae 100644
--- a/main.go
+++ b/main.go
@@ -30,6 +30,7 @@ func main() {
Args = Args[1:]
filename := "test.bench"
+ verbosity := 0
for len(Args) > 0 {
switch(Args[0]) {
@@ -40,6 +41,13 @@ func main() {
}
filename = Args[1]
Args = Args[2:]
+ case "-v":
+ if len(Args) < 2 {
+ fmt.Println("Need arg for -v")
+ os.Exit(1)
+ }
+ verbosity, _ = strconv.Atoi(Args[1])
+ Args = Args[2:]
case "plan":
workerA := []string{"burnwait", "70", "200000"}
//workerB := []string{"burnwait", "10", "20000000"}
@@ -105,12 +113,7 @@ func main() {
Args = Args[1:]
case "report":
- verbosity := 0
Args = Args[1:]
- if len(Args) > 0 {
- verbosity, _ = strconv.Atoi(os.Args[0])
- Args = Args[1:]
- }
plan, err := LoadBenchmark(filename)
if err != nil {
fmt.Println("Loading benchmark ", filename, "
", err)
--
2.7.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |