diff --git a/model.go b/model.go index 4ba4649..a73f749 100644 --- a/model.go +++ b/model.go @@ -177,8 +177,8 @@ type Status struct { Name string `json:"name"` } `json:"messages"` PageCache struct { - LogHitRate int `json:"log_hit_rate"` - StorageHitRate int `json:"storage_hit_rate"` + LogHitRate float64 `json:"log_hit_rate"` + StorageHitRate float64 `json:"storage_hit_rate"` } `json:"page_cache"` Processes map[string]struct { Address string `json:"address"` diff --git a/testdata/status2.json b/testdata/status2.json index 489fe9c..c79a883 100644 --- a/testdata/status2.json +++ b/testdata/status2.json @@ -511,8 +511,8 @@ } ], "page_cache": { - "log_hit_rate": 1, - "storage_hit_rate": 1 + "log_hit_rate": 0.99832799999999999, + "storage_hit_rate": 0.99840299999999993 }, "processes": { "05ab57c2b7cd6b51e62a1390da76217a": {