diff --git a/pkg/linux/proc/diskStatStrings.go b/pkg/linux/proc/diskStatStrings.go index ed2622358..3a100df6e 100644 --- a/pkg/linux/proc/diskStatStrings.go +++ b/pkg/linux/proc/diskStatStrings.go @@ -1,4 +1,4 @@ -// Code generated by "stringer -type=DiskStat -output diskStatStrings.go -linecomment"; DO NOT EDIT. +// Code generated by "stringer -type=Stat -output diskStatStrings.go -linecomment"; DO NOT EDIT. package diskstats @@ -27,13 +27,13 @@ func _() { _ = x[TotalTimeFlushing-16] } -const _DiskStat_name = "Total reads completedTotal reads mergedTotal sectors readTotal milliseconds spent readingTotal writes completedTotal writes mergedTotal sectors writtenTotal milliseconds spent writingI/Os currently in progressMilliseconds elapsed spent doing I/OsMilliseconds elapsed spent doing I/Os (weighted)Total discards completedTotal discards mergedTotal sectors discardedTotal milliseconds spent discardingTotal flush requests completedTotal milliseconds spent flushing" +const _Stat_name = "Total reads completedTotal reads mergedTotal sectors readTotal milliseconds spent readingTotal writes completedTotal writes mergedTotal sectors writtenTotal milliseconds spent writingI/Os currently in progressMilliseconds elapsed spent doing I/OsMilliseconds elapsed spent doing I/Os (weighted)Total discards completedTotal discards mergedTotal sectors discardedTotal milliseconds spent discardingTotal flush requests completedTotal milliseconds spent flushing" -var _DiskStat_index = [...]uint16{0, 21, 39, 57, 89, 111, 130, 151, 183, 209, 246, 294, 318, 339, 362, 397, 427, 460} +var _Stat_index = [...]uint16{0, 21, 39, 57, 89, 111, 130, 151, 183, 209, 246, 294, 318, 339, 362, 397, 427, 460} func (i Stat) String() string { - if i < 0 || i >= Stat(len(_DiskStat_index)-1) { - return "DiskStat(" + strconv.FormatInt(int64(i), 10) + ")" + if i < 0 || i >= Stat(len(_Stat_index)-1) { + return "Stat(" + strconv.FormatInt(int64(i), 10) + ")" } - return _DiskStat_name[_DiskStat_index[i]:_DiskStat_index[i+1]] + return _Stat_name[_Stat_index[i]:_Stat_index[i+1]] } diff --git a/pkg/linux/proc/diskstats.go b/pkg/linux/proc/diskstats.go index 238442132..cbb67a9bd 100644 --- a/pkg/linux/proc/diskstats.go +++ b/pkg/linux/proc/diskstats.go @@ -17,7 +17,7 @@ import ( "github.com/rs/zerolog/log" ) -//go:generate stringer -type=DiskStat -output diskStatStrings.go -linecomment +//go:generate stringer -type=Stat -output diskStatStrings.go -linecomment const ( TotalReads Stat = iota // Total reads completed TotalReadsMerged // Total reads merged