]> git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/util/xs_interceptor/xs_interceptor.go
Add separate views for the top servers on a map.
[xonotic/xonstat.git] / xonstat / util / xs_interceptor / xs_interceptor.go
index abffb8709089b6bd8cc7a8423cee6a7dfa897244..a968c2c7ecd12ecd75ac9cd1b68b6a062c61f471 100644 (file)
@@ -117,10 +117,7 @@ func serve(port int) {
        fmt.Printf("Serving on port %d...\n", port)\r
        addr := fmt.Sprintf(":%d", port)\r
   for true {\r
-    err := http.ListenAndServe(addr, nil)\r
-    if err == nil {\r
-      fmt.Println("got it!")\r
-    }\r
+    http.ListenAndServe(addr, nil)\r
     time.Sleep(100*time.Millisecond)\r
   }\r
 }\r
@@ -238,7 +235,9 @@ func resubmit(url string) {
 \r
                fmt.Printf("Request #%d: %s\n", request_id, res.Status)\r
 \r
-               if res.StatusCode < 500 {\r
+    // undeliverables requests will still live in the database,\r
+    // but we can clear out the 200 ones for sure\r
+               if res.StatusCode == 200 {\r
                        successfulRequests = append(successfulRequests, request_id)\r
                }\r
        }\r