the way i'm doing the web itnerface kinda sucks.
[goDBhammer.git] / src / benchcontroller.go
index bb49570..6bd48a3 100644 (file)
@@ -4,7 +4,7 @@ package benchcontroller
 
 import (
        //"./dbconnector";
-       "os";
+       "fmt";
        "time";
 )
 
@@ -25,14 +25,15 @@ func CreateController()(contConfig *BenchControllerConfig)
        return bcConfig;
 }
 
-func MainLoop(conf *BenchControllerConfig, commInChan chan int, commOutChan chan int)
+func MainLoop(conf *BenchControllerConfig, commInChan chan string, commOutChan chan string)
 {
        for {
                time.Sleep(1000000000);
                i := <-commInChan;
-               os.Stdout.WriteString("got a coms\n");
                
-               switch i {
+               fmt.Printf("coms: %s\n", i);
+               
+               /*switch i {
                        case 1:
                                // this means shutdown
                                os.Stdout.WriteString("shutdown\n");
@@ -43,6 +44,6 @@ func MainLoop(conf *BenchControllerConfig, commInChan chan int, commOutChan chan
                        case 3:
                                // start the clients
                                os.Stdout.WriteString("start clients\n");
-               }
+               }*/
        }
 }
\ No newline at end of file