-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix compilation with -DHAVE_STATS=0 #5
Changes from 1 commit
2ce77d9
63e08a0
559e9a7
c8057a7
ebc5ef5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ procinfo_teardown(void) | |
void | ||
procinfo_update(void) | ||
{ | ||
#if defined CC_STATS && CC_STATS == 1 | ||
This comment was marked as spam.
Sorry, something went wrong. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do you mean by "rename" this function? I was thinking I could keep this function in the if branch and an empty macro in the else branch?
This comment was marked as spam.
Sorry, something went wrong. |
||
struct rusage usage; | ||
|
||
procinfo_metrics->pid.vintmax = (intmax_t)getpid(); | ||
|
@@ -77,4 +78,5 @@ procinfo_update(void) | |
procinfo_metrics->ru_nsignals.vintmax = (intmax_t)usage.ru_nsignals; | ||
procinfo_metrics->ru_nvcsw.vintmax = (intmax_t)usage.ru_nvcsw; | ||
procinfo_metrics->ru_nivcsw.vintmax = (intmax_t)usage.ru_nivcsw; | ||
#endif | ||
} |
This comment was marked as spam.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the warning:
This comment was marked as spam.
Sorry, something went wrong.