Revert "perf time-utils: Fix 32-bit nsec parsing"

This reverts commit 721bd8bf91.
This commit is contained in:
Ksawlii 2024-11-24 00:23:22 +01:00
parent 95cd9c5cbf
commit 504c8784d8

View file

@ -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