Merge ~rodsmith/plainbox-provider-checkbox:fix-disk-cpu-load into plainbox-provider-checkbox:master
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jeff Lane | ||||
Approved revision: | 507507ebc8bdbfd1ec4c1a62b5e393cb3f08e072 | ||||
Merged at revision: | 15ec3e8bf85e0aac21729f41a5fa4c993c06270a | ||||
Proposed branch: | ~rodsmith/plainbox-provider-checkbox:fix-disk-cpu-load | ||||
Merge into: | plainbox-provider-checkbox:master | ||||
Diff against target: |
68 lines (+19/-2) 1 file modified
bin/disk_cpu_load (+19/-2) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeff Lane | Approve | ||
Review via email: mp+314029@code.launchpad.net |
Description of the change
This MR fixes bug #1641684, at least minimally. (More extensive verbose-mode messages might conceivably be desired in some cases, but I thought it best to start with the basics.) Specifically, there are two chances:
* The cpu_load variable is now calculated via the "bc" command rather
than with bash's built-in arithmetic. The script failure was caused
by the ultra-low CPU load of disk on the P8 server, which produced
a fractional (0.01) CPU load; but bash's integer arithmetic caused
this to produce an error, so the "set -e" in the script caused a
failure. Using "bc" to do the calculation works around this problem.
* A new "--verbose" option, if used, produces messages to be displayed
reporting when key actions are started and on the values of some
intermediate variables.
Cool. Thanks for addressing that.