Skip to content
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

dashboard: append to the proper slice #17266

Merged
merged 1 commit into from Jul 30, 2018

Conversation

cristaloleg
Copy link
Contributor

Suspicious work with slice was found by 'appendAssign' checker as a part of go-critic.

@cristaloleg cristaloleg changed the title dashboard: append to proper slice dashboard: append to the proper slice Jul 30, 2018
Copy link
Member

@karalabe karalabe left a comment

Choose a reason for hiding this comment

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

Good catch! LGTM

@karalabe karalabe modified the milestone: 1.8.13 Jul 30, 2018
@karalabe karalabe merged commit 7b1aa64 into ethereum:master Jul 30, 2018
@cristaloleg cristaloleg deleted the possible-bug-in-dashboard branch July 30, 2018 09:49
firmianavan pushed a commit to firmianavan/go-ethereum that referenced this pull request Aug 28, 2018
@@ -370,7 +370,7 @@ func (db *Dashboard) collectData() {
sys.ProcessCPU = append(sys.ProcessCPU[1:], processCPU)
sys.SystemCPU = append(sys.SystemCPU[1:], systemCPU)
sys.DiskRead = append(sys.DiskRead[1:], diskRead)
sys.DiskWrite = append(sys.DiskRead[1:], diskWrite)
sys.DiskWrite = append(sys.DiskWrite[1:], diskWrite)

Choose a reason for hiding this comment

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

needs to be write

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What?

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

Successfully merging this pull request may close these issues.

None yet

3 participants