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

Report clock resolution during the bootstrap #174

Merged
merged 3 commits into from
Aug 16, 2022

Conversation

danielealbano
Copy link
Owner

This PR introduces two new functions to report the clock resolution for CLOCK_MONOTONIC_COARSE and CLOCK_REALTIME_COARSE, which are used for the storage db entries expirations, and add a log line to report the resolution at the boostrap.

Tests are also updated within the PR to use these functions instead of fetching the resolution via clock_getres.

@danielealbano danielealbano added the enhancement New feature or request label Aug 16, 2022
@danielealbano danielealbano added this to the v0.2 milestone Aug 16, 2022
@danielealbano danielealbano self-assigned this Aug 16, 2022
@danielealbano danielealbano marked this pull request as ready for review August 16, 2022 20:44
@codecov
Copy link

codecov bot commented Aug 16, 2022

Codecov Report

Merging #174 (a567ff6) into main (09ed767) will increase coverage by 0.04%.
The diff coverage is 88.89%.

@@            Coverage Diff             @@
##             main     #174      +/-   ##
==========================================
+ Coverage   78.70%   78.75%   +0.04%     
==========================================
  Files         103      104       +1     
  Lines        6574     6583       +9     
==========================================
+ Hits         5174     5184      +10     
+ Misses       1400     1399       -1     
Impacted Files Coverage Δ
src/clock.h 80.00% <ø> (ø)
.../data_structures/hashtable/mcmp/hashtable_op_set.c 100.00% <ø> (ø)
src/program.c 26.35% <0.00%> (-0.10%) ⬇️
src/clock.c 100.00% <100.00%> (ø)
src/network/network.c 80.00% <0.00%> (+1.48%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@danielealbano danielealbano merged commit 8380bfa into main Aug 16, 2022
@danielealbano danielealbano deleted the report-clock-resolution-during-the-bootstrap branch August 16, 2022 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant