Skip to content

Conversation

@cclerget
Copy link
Contributor

@cclerget cclerget commented Dec 3, 2018

Prevent weight/leafweight from returning address value instead :

type LinuxWeightDevice struct {
	linuxBlockIODevice
	Weight *uint16 `json:"weight,omitempty"`
	LeafWeight *uint16 `json:"leafWeight,omitempty"`
}

Not sure if this is the right thing to do by returning "1000" when pointer is null ...

@cclerget cclerget force-pushed the master-weight-pointer branch from 1925066 to be7c666 Compare December 3, 2018 12:49
@codecov-io
Copy link

codecov-io commented Dec 3, 2018

Codecov Report

Merging #69 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #69      +/-   ##
==========================================
- Coverage    14.3%   14.27%   -0.03%     
==========================================
  Files          23       23              
  Lines        4579     4588       +9     
==========================================
  Hits          655      655              
- Misses       3803     3812       +9     
  Partials      121      121
Impacted Files Coverage Δ
blkio.go 20.77% <0%> (-0.95%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3bc6dde...64bade4. Read the comment docs.

@cclerget
Copy link
Contributor Author

cclerget commented Dec 4, 2018

@crosbymichael Sorry about confusion, updated with your suggestions

@crosbymichael
Copy link
Member

Looks great @cclerget ! maybe a simple test to make sure this does not panic anymore would be amazing.

@crosbymichael
Copy link
Member

And can you squash your commits into one before we merge?

@cclerget cclerget force-pushed the master-weight-pointer branch from a48fed3 to 64bade4 Compare December 4, 2018 20:43
@cclerget
Copy link
Contributor Author

cclerget commented Dec 4, 2018

Yep, I successfully run same tests (from opencontainers/runtime-tools validation tests) without panic

@crosbymichael
Copy link
Member

LGTM

1 similar comment
@dqminh
Copy link
Member

dqminh commented Dec 8, 2018

LGTM

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.

4 participants