Skip to content

cpuidle handle newlines in names#5425

Merged
cakrit merged 3 commits intonetdata:masterfrom
cakrit:cpuidle-newlineinnames
Feb 20, 2019
Merged

cpuidle handle newlines in names#5425
cakrit merged 3 commits intonetdata:masterfrom
cakrit:cpuidle-newlineinnames

Conversation

@cakrit
Copy link
Copy Markdown
Contributor

@cakrit cakrit commented Feb 19, 2019

Summary

Fixes #5418

Component Name

proc_stat

Additional Information

@cakrit cakrit changed the title cpuidle handle newlines in names [WIP] cpuidle handle newlines in names Feb 19, 2019
@cakrit cakrit changed the title [WIP] cpuidle handle newlines in names cpuidle handle newlines in names Feb 19, 2019
@netdatabot netdatabot added the area/collectors Everything related to data collection label Feb 19, 2019

name_buf[r - 1] = '\0'; // erase extra character
cc->cpuidle_state[state].name = strdupz(name_buf);
cc->cpuidle_state[state].name = strdupz(trim(name_buf));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Things can go crazy if name_buf is only spaces.

@cakrit cakrit merged commit 8a0ce02 into netdata:master Feb 20, 2019
@cakrit cakrit deleted the cpuidle-newlineinnames branch February 27, 2019 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/collectors Everything related to data collection

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants