(sstats, nsIndexStat map[string]interface{})
| 753 | } |
| 754 | |
| 755 | func extractScorchStats(sstats, nsIndexStat map[string]interface{}) error { |
| 756 | for path, statname := range scorchStats { |
| 757 | v := jsonpointer.Get(sstats, path) |
| 758 | if vuint64, ok := v.(uint64); ok { |
| 759 | updateStat(statname, float64(vuint64), nsIndexStat) |
| 760 | } else if fuint64, ok := v.(float64); ok { |
| 761 | updateStat(statname, float64(fuint64), nsIndexStat) |
| 762 | } |
| 763 | } |
| 764 | |
| 765 | return nil |
| 766 | } |
| 767 | |
| 768 | func massageStats(buffer *bytes.Buffer, nsIndexStat map[string]interface{}) error { |
| 769 | statsBytes := buffer.Bytes() |
no test coverage detected