Changed value of lsblk block usage output to bytes

This commit is contained in:
Paulo Truta
2021-06-07 17:40:57 +00:00
parent 2d92131533
commit 5d92e213ee
+1 -1
View File
@@ -74,7 +74,7 @@ func GetDevices() []Device {
var devices []Device
cmdArgs := []string{"--raw", "--noheadings"}
cmdArgs := []string{"--raw", "--bytes", "--noheadings"}
cmdOutput := utils.Exec("lsblk", cmdArgs)
cmdOutputReader := strings.NewReader(cmdOutput)
scanner := bufio.NewScanner(cmdOutputReader)