Skip to content

Commit 22edd2e

Browse files
author
grey
committed
added additional info
1 parent 39a5d0b commit 22edd2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webRoutes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ func handleRemaining(w http.ResponseWriter, r *http.Request) {
329329
plyB.Done <- true
330330
}
331331
fmt.Println(position)
332-
fmt.Fprintf(w, "{\"status\":\"ok\", \"SampleRate\":%d, \"Length\":%d, \"Position\":%d, \"Remaining\": %d, \"LengthSec\":\"%v\", \"PosSec\":\"%v\", \"RemaningSec\":\"%v\"}", n, length, position, remaining, length, position, remaining)
332+
fmt.Fprintf(w, "{\"status\":\"ok\", \"id\":%d, \"SampleRate\":%d, \"Length\":%d, \"Position\":%d, \"Remaining\": %d, \"LengthSec\":\"%v\", \"PosSec\":\"%v\", \"RemaningSec\":\"%v\"}", cnt, n, length, position, remaining, length, position, remaining)
333333
} else {
334334
fmt.Println("Seeker is nil")
335335
fmt.Fprintf(w, "{\"status\":\"ok\", \"SampleRate\":%d}", n)

0 commit comments

Comments
 (0)