Fixed pagination for stats, was using query parameter instead of httprouter parameter

This commit is contained in:
Seednode 2023-09-09 00:25:04 -05:00
parent d2d87e010d
commit 425857af84
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ var (
) )
const ( const (
Version string = "0.58.0" Version string = "0.58.1"
) )
var ( var (

View File

@ -585,7 +585,7 @@ func serveStats(args []string, stats *ServeStats) httprouter.Handle {
startTime := time.Now() startTime := time.Now()
page, err := strconv.Atoi(r.URL.Query().Get("page")) page, err := strconv.Atoi(p.ByName("page"))
if err != nil || page == 0 { if err != nil || page == 0 {
page = -1 page = -1
} }