mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-03 13:30:37 -07:00
FIX: t_utc parse overflow
Change-Id: If0358a8458fcd9a79f61b6efe5b4720c5682dccc Jira: none (cherry picked from commit f6672805a2d990a77192b14db199e6ff96956bb7)
This commit is contained in:
parent
0ee8262ee2
commit
ffcfb4f6bd
1 changed files with 1 additions and 1 deletions
|
|
@ -2714,7 +2714,7 @@ int MachineObject::parse_json(std::string payload)
|
|||
j = j_pre;
|
||||
}
|
||||
|
||||
uint64_t t_utc = j.value("t_utc", 0);
|
||||
uint64_t t_utc = j.value("t_utc", 0ULL);
|
||||
if (t_utc > 0)
|
||||
last_update_time = std::chrono::system_clock::time_point(t_utc * 1ms);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue