zonedStats handles zoned stats.
(us []uint32)
| 771 | |
| 772 | // zonedStats handles zoned stats. |
| 773 | func zonedStats(us []uint32) (ZonedStats, error) { |
| 774 | if l := len(us); l < 3 { |
| 775 | return ZonedStats{}, fmt.Errorf("incorrect number of values for zoned stats: %d", l) |
| 776 | } |
| 777 | |
| 778 | return ZonedStats{ |
| 779 | GcReadCalls: us[0], |
| 780 | GcWriteCalls: us[1], |
| 781 | GcZoneResetCalls: us[2], |
| 782 | }, nil |
| 783 | } |
| 784 | |
| 785 | // metaFileStats handles metafile stats. |
| 786 | func metaFileStats(us []uint32) (MetaFileStats, error) { |
no outgoing calls
no test coverage detected
searching dependent graphs…