Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

chore(wmi): rename apps to processes plus small fixes #954

Merged
merged 2 commits into from
Oct 29, 2022

Conversation

ilyam8
Copy link
Member

@ilyam8 ilyam8 commented Oct 29, 2022

No description provided.

@ilyam8 ilyam8 merged commit 9c220e1 into netdata:master Oct 29, 2022
@ilyam8 ilyam8 deleted the chore_wmi_apps-process branch October 29, 2022 21:20
sort.Slice(procs, func(i, j int) bool { return procs[i] < procs[j] })

for _, id := range procs {
if w.cache.procs[id] {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you abbreviate process ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because I decided to do so - procs/processes. Does it look like a problem for you?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, it is not a problem.

When I brought abbreviation for apps, it was because this is the way we work on Linux/BSD/Mac. On the other hand we are not abbreviating memory when we could.

I am still trying to understand the pattern. 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

w.cache.procs

That is a private variable. Why does it bother you how I name it?

Copy link
Member Author

Choose a reason for hiding this comment

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

Or do you talk about something different? I am commenting on the highlighted code.

Copy link
Contributor

Choose a reason for hiding this comment

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

I understand this is an internal variable, but why should it to be the unique with abbreviation when others do not have? 🤔

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants