Skip to content

Commit

Permalink
Update regex for negative temp values
Browse files Browse the repository at this point in the history
  • Loading branch information
GDWR committed Feb 3, 2024
1 parent 84d913b commit cfb9253
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/tegrastats/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ var regex = regexp.MustCompile(
`CPU@(?P<cpuTemp>[\d|\.]+)C ` +
`Tboard@(?P<tboardTemp>[\d|\.]+)C ` +
`SOC2@(?P<soc2Temp>[\d|\.]+)C ` +
`Tdiode@(?P<diodeTemp>[\d|\.]+)C ` +
`SOC0@(?P<soc0Temp>[\d|\.]+)C ` +
`Tdiode@(?P<diodeTemp>[\-|\d|\.]+)C ` +
`SOC0@(?P<soc0Temp>[\-|\d|\.]+)C ` +
`CV1@(?P<cv1Temp>[\-|\d|\.]+)C ` +
`GPU@(?P<gpuTemp>[\d|\.]+)C ` +
`tj@(?P<tjTemp>[\d|\.]+)C ` +
`SOC1@(?P<soc1Temp>[\d|\.]+)C ` +
`GPU@(?P<gpuTemp>[\-|\d|\.]+)C ` +
`tj@(?P<tjTemp>[\-|\d|\.]+)C ` +
`SOC1@(?P<soc1Temp>[\-|\d|\.]+)C ` +
`CV2@(?P<cv2Temp>[\-|\d|\.]+)C`,
)

Expand Down

0 comments on commit cfb9253

Please sign in to comment.