We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 162466d commit 3fb1583Copy full SHA for 3fb1583
inspector/disk.go
@@ -79,11 +79,14 @@ func (i *DF) Parse(output string) {
79
log.Fatalf(`Error Parsing Percent Full: %s `, err)
80
}
81
// find size
82
- for index := range columns {
83
- _, err := strconv.ParseInt(columns[index], 0, 64)
+ originalColumns := columns
+ for index := range originalColumns {
84
+ _, err := strconv.ParseInt(originalColumns[index], 0, 64)
85
if err == nil {
- columns[0] = strings.Join(columns[:index], " ")
86
- columns[1] = columns[index]
+ columns[0] = strings.Join(originalColumns[:index], " ")
87
+ columns[1] = originalColumns[index]
88
+ columns[2] = originalColumns[index+1]
89
+ columns[3] = originalColumns[index+2]
90
break
91
92
@@ -138,7 +141,8 @@ type DFWin struct {
138
141
Values []DFMetrics
139
142
140
143
-/* Parse : For the following windows output
144
+/*
145
+ Parse : For the following windows output
146
147
Node,DeviceID,DriveType,FreeSpace,ProviderName,Size,VolumeName
148
IMANI,C:,3,191980253184,,288303964160,OS
0 commit comments