Skip to content

Commit

Permalink
Temporarily replace David's goopt with my patched version that fixes …
Browse files Browse the repository at this point in the history
…the dash issue.
  • Loading branch information
xxxserxxx committed Feb 10, 2022
1 parent 7d26567 commit 70d96bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions devices/temp_freebsd.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build freebsd
// +build freebsd

package devices
Expand Down Expand Up @@ -38,9 +39,8 @@ func update(temps map[string]int) map[string]error {
continue
}

s1 := strings.Replace(string(output), "C", "", 1)
s2 := strings.TrimSuffix(s1, "\n")
convertedOutput := utils.ConvertLocalizedString(s2)
s1 := strings.TrimSuffix(strings.Replace(string(output), "C", "", 1), "\n")
convertedOutput := utils.ConvertLocalizedString(s1)
value, err := strconv.ParseFloat(convertedOutput, 64)
if err != nil {
errors[v] = err
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ require (
howett.net/plist v0.0.0-20200419221736-3b63eb3a43b5 // indirect
)

replace github.com/droundy/goopt => github.com/xxxserxxx/goopt v0.0.0-20220210150945-f4719cb0883e

go 1.16
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ github.com/valyala/fastrand v1.0.0 h1:LUKT9aKer2dVQNUi3waewTbKV+7H17kvWFNKs2Obdk
github.com/valyala/fastrand v1.0.0/go.mod h1:HWqCzkrkg6QXT8V2EXWvXCoow7vLwOFN002oeRzjapQ=
github.com/valyala/histogram v1.0.1 h1:FzA7n2Tz/wKRMejgu3PV1vw3htAklTjjuoI6z3d4KDg=
github.com/valyala/histogram v1.0.1/go.mod h1:lQy0xA4wUz2+IUnf97SivorsJIp8FxsnRd6x25q7Mto=
github.com/xxxserxxx/goopt v0.0.0-20220210150945-f4719cb0883e h1:5XgTxe0E4PhZ+FWvF7H4DIFWDdBl1k3FHstL7waF8sQ=
github.com/xxxserxxx/goopt v0.0.0-20220210150945-f4719cb0883e/go.mod h1:ybXiXYU9w9/2lKDgxw4of1CqWxG34LUUjK50g+xocKA=
github.com/xxxserxxx/lingo/v2 v2.0.1 h1:6uLLKzPqL0XpdFmNMmpSfu+uIzQk344ebfdpFWbGuxs=
github.com/xxxserxxx/lingo/v2 v2.0.1/go.mod h1:Hr6LTxpwirwJ2Qe83MvgSQARPFDzZ4S6DKd6ciuED7A=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
Expand Down

0 comments on commit 70d96bd

Please sign in to comment.