Skip to content

Commit

Permalink
syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
erulabs committed Jul 13, 2022
1 parent c12dff6 commit 3a9d264
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ type RGB struct {
}

func rgb(w http.ResponseWriter, req *http.Request) {

var c RGB
err := json.NewDecoder(req.Body).Decode(&c)
if err != nil {
Expand Down Expand Up @@ -189,7 +188,7 @@ func diskStats(w http.ResponseWriter, req *http.Request) {
fmt.Fprintf(os.Stderr, "Failed to run lvs command: %v\n", lvsStderr.String())
} else {
responseData.Lvs = strings.Replace(strings.Trim(strings.Trim(lvsStdout.String(), "\n"), " "), "\t", " ", -1)

}

pvs := exec.Command("pvs", "--reportformat", "json", "--units=b")
var pvsStdout bytes.Buffer
Expand Down

0 comments on commit 3a9d264

Please sign in to comment.