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

journal: implement GetUsage() (sd_journal_get_usage()) #122

Merged
merged 1 commit into from
Nov 4, 2015
Merged

journal: implement GetUsage() (sd_journal_get_usage()) #122

merged 1 commit into from
Nov 4, 2015

Conversation

audebert
Copy link
Contributor

@audebert audebert commented Nov 4, 2015

No description provided.

@@ -237,3 +237,17 @@ func (j *Journal) Wait(timeout time.Duration) int {

return int(r)
}

// Returns the journal disk space usage, in bytes.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update the docstring to be consistent with the rest:
GetUsage returns the journal disk space usage, in bytes.

@audebert
Copy link
Contributor Author

audebert commented Nov 4, 2015

Thank you for the review, I have updated the patch.

@vcaputo
Copy link
Contributor

vcaputo commented Nov 4, 2015

lgtm, thanks for the contribution! We'll have to see about improving the tests overall in this package at some point.

vcaputo added a commit that referenced this pull request Nov 4, 2015
journal: implement GetUsage() (sd_journal_get_usage())
@vcaputo vcaputo merged commit b4a58d9 into coreos:master Nov 4, 2015
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

2 participants