mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-06-08 05:55:42 +09:00
fix(SlaveLogParser): accept negative temperature
This commit is contained in:
parent
78beef2c68
commit
14e938c589
1 changed files with 2 additions and 1 deletions
|
@ -149,7 +149,8 @@ function parse_power_section!(lines::Base.Iterators.Stateful)::PowerResult
|
||||||
end
|
end
|
||||||
line = popfirst!(lines)
|
line = popfirst!(lines)
|
||||||
fpga_temp = let
|
fpga_temp = let
|
||||||
m = match(r"^FPGA Temprature \[C\] = ([\d|\.]+)$", line)
|
# can be minus (see 127_172.txt)
|
||||||
|
m = match(r"^FPGA Temprature \[C\] = (-?[\d|\.]+)$", line)
|
||||||
parse(Float64, m[1])
|
parse(Float64, m[1])
|
||||||
end
|
end
|
||||||
line = popfirst!(lines)
|
line = popfirst!(lines)
|
||||||
|
|
Loading…
Add table
Reference in a new issue