From: Paul J R Date: Sun, 15 Nov 2009 12:31:20 +0000 (+1100) Subject: added begin page X-Git-Url: http://git.pjr.cc/?a=commitdiff_plain;h=c9e1d3b61ac854f6ca704d627957241a725d4bc2;p=goDBhammer.git added begin page --- diff --git a/src/webconnector.go b/src/webconnector.go index 1f83b29..9885bbb 100644 --- a/src/webconnector.go +++ b/src/webconnector.go @@ -42,17 +42,26 @@ func confirmPage(c *http.Conn, req *http.Request) dbpass := req.FormValue("dbpass"); dbname := req.FormValue("dbname"); nthreads := req.FormValue("nthreads"); + dbmult := req.FormValue("dbmult"); io.WriteString(c, "You are trying to perform a benchmark with the following values:
"); - io.WriteString(c, ""); + io.WriteString(c, "
"); io.WriteString(c, fmt.Sprintf("", dbhost)); io.WriteString(c, fmt.Sprintf("", dbuser)); io.WriteString(c, fmt.Sprintf("", dbpass)); io.WriteString(c, fmt.Sprintf("", dbname)); + io.WriteString(c, fmt.Sprintf("", dbmult)); io.WriteString(c, fmt.Sprintf("", nthreads)); io.WriteString(c, "
Host%s
User%s
Password%s
Database%s
Data Multiplier%s
Number of Threads%s
"); - io.WriteString(c, "Back"); - io.WriteString(c, fmt.Sprintf(" Begin", dbhost, dbuser, dbpass, dbname, nthreads)); + io.WriteString(c, "
"); + io.WriteString(c, fmt.Sprintf("",dbhost)); + io.WriteString(c, fmt.Sprintf("",dbuser)); + io.WriteString(c, fmt.Sprintf("",dbpass)); + io.WriteString(c, fmt.Sprintf("",dbname)); + io.WriteString(c, fmt.Sprintf("",nthreads)); + io.WriteString(c, fmt.Sprintf("",dbmult)); + io.WriteString(c, ""); + io.WriteString(c, "
"); footer(c); } @@ -68,7 +77,8 @@ func mainPage(c *http.Conn, req *http.Request) io.WriteString(c, "Database User"); io.WriteString(c, "Database Password"); io.WriteString(c, "Database"); - io.WriteString(c, "Number of Clients"); + io.WriteString(c, "Data Multiplier"); + io.WriteString(c, "Number of Clients"); io.WriteString(c, ""); io.WriteString(c, ""); io.WriteString(c, "");