diff --git a/listener.go b/listener.go index 61aec78..87545e4 100644 --- a/listener.go +++ b/listener.go @@ -29,14 +29,14 @@ func compareMap(src map[string]interface{}, dst map[string]interface{}) bool { continue } - srcV, ok := value.(int) + srcV, ok := value.(float64) if !ok { - srcV = int(value.(float64)) + srcV = float64(value.(int)) } - dstV, ok := dst[key].(int) + dstV, ok := dst[key].(float64) if !ok { - dstV = int(dst[key].(float64)) + dstV = float64(dst[key].(int)) } if srcV != dstV {