mirror of
https://github.com/edgebox-iot/edgeboxctl.git
synced 2026-10-19 17:55:16 +02:00
Changed value of lsblk block usage output to bytes
This commit is contained in:
@@ -74,7 +74,7 @@ func GetDevices() []Device {
|
|||||||
|
|
||||||
var devices []Device
|
var devices []Device
|
||||||
|
|
||||||
cmdArgs := []string{"--raw", "--noheadings"}
|
cmdArgs := []string{"--raw", "--bytes", "--noheadings"}
|
||||||
cmdOutput := utils.Exec("lsblk", cmdArgs)
|
cmdOutput := utils.Exec("lsblk", cmdArgs)
|
||||||
cmdOutputReader := strings.NewReader(cmdOutput)
|
cmdOutputReader := strings.NewReader(cmdOutput)
|
||||||
scanner := bufio.NewScanner(cmdOutputReader)
|
scanner := bufio.NewScanner(cmdOutputReader)
|
||||||
|
|||||||
Reference in New Issue
Block a user