Skip to content

Commit

Permalink
Change a couple of cache hit rate to float type, to avoid unmarshal e…
Browse files Browse the repository at this point in the history
…rrors

Tested with: go test ./...
  • Loading branch information
sfc-gh-bxin authored and masih committed Jun 21, 2024
1 parent 3148740 commit 19ee2e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
4 changes: 2 additions & 2 deletions testdata/status2.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 19ee2e8

Please sign in to comment.