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

Update URR report #139

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

chen042531
Copy link
Contributor

@chen042531 chen042531 commented Feb 7, 2025

update URR report counter

// set the use_bytes2 flag to the opposite value
urr->use_bytes2 = !urr->use_bytes2;
// sleep for 1 millisecond to make sure the counter is updated
// before the report is converted
Copy link
Collaborator

Choose a reason for hiding this comment

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

// before converting to the report

include/urr.h Outdated
@@ -79,6 +79,7 @@ struct urr {
struct Volume volumequota;

// For usage report volume measurement
bool use_bytes2;
Copy link
Collaborator

Choose a reason for hiding this comment

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

rename to

    bool use_vol2;
    struct VolumeMeasurement vol;
    struct VolumeMeasurement vol2;

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.

2 participants