mirror of
https://github.com/open5gs/open5gs.git
synced 2026-04-28 11:29:32 +00:00
fix: The SBI time string converting error in 32bit
This commit is contained in:
parent
a0ebf20c88
commit
e531ccab5a
4 changed files with 13 additions and 13 deletions
|
|
@ -345,7 +345,7 @@ bool ogs_sbi_time_from_string(ogs_time_t *timestamp, char *str)
|
|||
|
||||
memset(&tm, 0, sizeof(tm));
|
||||
ogs_strptime(seconds, "%Y-%m-%dT%H:%M:%S%z", &tm);
|
||||
usecs = (ogs_time_t)(atof(subsecs) * 1000000);
|
||||
usecs = (ogs_time_t)floor(atof(subsecs) * 1000000.0 + 0.5);
|
||||
|
||||
rv = ogs_time_from_gmt(timestamp, &tm, usecs);
|
||||
if (rv != OGS_OK) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue