We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The value for remaining_t as reported by zpool_influxdb --no-histograms in the zpool_scan_stats section is not correct.
zpool_influxdb --no-histograms
Just run the command above during a scan
The root cause appears to be ~line 223 in zpool_influxdb.c :
remaining_time = ps->pss_to_examine - examined / rate;
The code is subtracting a unit of seconds (examined / rate) from a unit of bytes (ps->pss_to_examine ).
I believe the correct equation would be to divide the difference by the rate:
remaining_time = ( ps->pss_to_examine - examined ) / rate;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
System information
Describe the problem you're observing
The value for remaining_t as reported by
zpool_influxdb --no-histograms
in the zpool_scan_stats section is not correct.Describe how to reproduce the problem
Just run the command above during a scan
The root cause appears to be ~line 223 in zpool_influxdb.c :
remaining_time = ps->pss_to_examine - examined / rate;
The code is subtracting a unit of seconds (examined / rate) from a unit of bytes (ps->pss_to_examine ).
I believe the correct equation would be to divide the difference by the rate:
remaining_time = ( ps->pss_to_examine - examined ) / rate;
Include any warning/errors/backtraces from the system logs
The text was updated successfully, but these errors were encountered: