Merge pull request #216 from andreas-schwab/master

parse_proc_interrupts: fix parsing interrupt counts
This commit is contained in:
Neil Horman 2022-06-27 08:44:27 -04:00 committed by GitHub
commit 6628273b31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ void parse_proc_interrupts(void)
while (1) {
uint64_t C;
C = strtoull(c, &c2, 10);
if (c==c2) /* end of numbers */
if (c==c2 || !strchr(" \t", *c2)) /* end of numbers */
break;
count += C;
c=c2;