Commit e8edf67a authored by Aksel Baardsen's avatar Aksel Baardsen
Browse files

diag uptime is now int instead of float

parent a775aa99
......@@ -25,7 +25,7 @@ func main() {
c.Path("/species/{speciesKey}").
HandlerFunc(handler.Shandler)
c.Path("/diag").
c.Path("/diag/").
HandlerFunc(handler.Dhandler)
http.Handle("/", r)
......
......@@ -17,7 +17,7 @@ type Diag struct {
Gbif int `json:"gbif"`
Restcountries int `json:"restcountries"`
Version string `json:"version"`
Uptime float64 `json:"uptime"`
Uptime int `json:"uptime"`
}
func GetDiag(d* Diag) {
......@@ -50,5 +50,5 @@ func getVersion(d *Diag) {
// Returns application uptime in seconds
func getUptime(d *Diag) {
up := time.Since(startTime).Seconds()
d.Uptime = up
d.Uptime = int(up)
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment