gcXpcStats handles gc xpc stats.
(us []uint64)
| 806 | |
| 807 | // gcXpcStats handles gc xpc stats. |
| 808 | func gcXpcStats(us []uint64) (GcXpcStats, error) { |
| 809 | if l := len(us); l != 1 { |
| 810 | return GcXpcStats{}, fmt.Errorf("incorrect number of values for XFS gc xpc stats: %d", l) |
| 811 | } |
| 812 | |
| 813 | return GcXpcStats{ |
| 814 | Bytes: us[0], |
| 815 | }, nil |
| 816 | } |