|
@@ -49,7 +49,7 @@ type CommandResponse struct {
|
|
|
|
|
|
// StatusResponse is an implementation of a CommandResponse
|
|
|
type StatusResponse struct {
|
|
|
- Len int `json:"length"`
|
|
|
+ Size int `json:"size"`
|
|
|
IsRunning bool `json:"running"`
|
|
|
}
|
|
|
|
|
@@ -154,7 +154,7 @@ func (h *Hub) Run() {
|
|
|
cmd.Response <- CommandResponse{Value: active}
|
|
|
case CommandStatus:
|
|
|
var resp = StatusResponse{
|
|
|
- Len: h.circbuf.Len(),
|
|
|
+ Size: h.circbuf.Len(),
|
|
|
IsRunning: active,
|
|
|
}
|
|
|
cmd.Response <- CommandResponse{Value: resp}
|