diff --git a/server.go b/server.go index f9332ac..b10dc08 100644 --- a/server.go +++ b/server.go @@ -581,7 +581,7 @@ func runHTTPandHTTPSHandler(w http.ResponseWriter, r *http.Request, p EthrProtoc http.Error(w, "Only GET, PUT and POST are supported.", http.StatusMethodNotAllowed) return } - if (testType == Bandwidth) { + if testType == Bandwidth { if r.ContentLength > 0 { atomic.AddUint64(&test.testResult.data, uint64(r.ContentLength)) } @@ -602,4 +602,4 @@ func runHTTPLatencyServer() { func runHTTPLatencyHandler(w http.ResponseWriter, r *http.Request) { runHTTPandHTTPSHandler(w, r, HTTP, Latency) -} \ No newline at end of file +} diff --git a/serverui.go b/serverui.go index c06dd2a..e87cc3b 100644 --- a/serverui.go +++ b/serverui.go @@ -212,7 +212,7 @@ func (u *serverTui) emitLatencyResults(remote, proto string, avg, min, max, p50, func (u *serverTui) paint(seconds uint64) { tm.Clear(tm.ColorDefault, tm.ColorDefault) defer tm.Flush() - printCenterText(0, 0, u.w, "Ethr " + gVersion, tm.ColorBlack, tm.ColorWhite) + printCenterText(0, 0, u.w, "Ethr "+gVersion, tm.ColorBlack, tm.ColorWhite) printHLineText(u.resX, u.resY-1, u.resW, "Test Results") printHLineText(u.statX, u.statY-1, u.statW, "Statistics") printVLine(u.topVSplitX, u.topVSplitY, u.topVSplitH) diff --git a/travis_build.sh b/travis_build.sh old mode 100644 new mode 100755 index 5e458a1..2533ac2 --- a/travis_build.sh +++ b/travis_build.sh @@ -1,8 +1,7 @@ #!/bin/bash -echo $TRAVIS_OS_NAME echo "${TRAVIS_OS_NAME}" echo "${TRAVIS_GO_VERSION}" -if [ "${TRAVIS_OS_NAME}" = "linux" ] && [[ ${TRAVIS_GO_VERSION} == 1.11* ]]; then +if [ "${TRAVIS_OS_NAME}" = "linux" ]; then export GOOS=windows export GOARCH=amd64 go build -o windows/ethr.exe -ldflags "-X main.gVersion=$TRAVIS_TAG"