Revert "perf time-utils: Fix 32-bit nsec parsing"
This reverts commit 721bd8bf91
.
This commit is contained in:
parent
95cd9c5cbf
commit
504c8784d8
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ int parse_nsec_time(const char *str, u64 *ptime)
|
|||
u64 time_sec, time_nsec;
|
||||
char *end;
|
||||
|
||||
time_sec = strtoull(str, &end, 10);
|
||||
time_sec = strtoul(str, &end, 10);
|
||||
if (*end != '.' && *end != '\0')
|
||||
return -1;
|
||||
|
||||
|
@ -38,7 +38,7 @@ int parse_nsec_time(const char *str, u64 *ptime)
|
|||
for (i = strlen(nsec_buf); i < 9; i++)
|
||||
nsec_buf[i] = '0';
|
||||
|
||||
time_nsec = strtoull(nsec_buf, &end, 10);
|
||||
time_nsec = strtoul(nsec_buf, &end, 10);
|
||||
if (*end != '\0')
|
||||
return -1;
|
||||
} else
|
||||
|
|
Loading…
Add table
Reference in a new issue