xStratStats handles xstrat stats.
(us []uint32)
| 321 | |
| 322 | // xStratStats handles xstrat stats. |
| 323 | func xStratStats(us []uint32) (XstratStats, error) { |
| 324 | if l := len(us); l != 2 { |
| 325 | return XstratStats{}, fmt.Errorf("incorrect number of values for XFS xstrat stats: %d", l) |
| 326 | } |
| 327 | |
| 328 | return XstratStats{ |
| 329 | Quick: us[0], |
| 330 | Split: us[1], |
| 331 | }, nil |
| 332 | } |
| 333 | |
| 334 | // readWriteStats handles rw stats. |
| 335 | func readWriteStats(us []uint32) (ReadWriteStats, error) { |
no outgoing calls
no test coverage detected
searching dependent graphs…