Bug 1922768
| Summary: | dstat count is one off | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Georg Sauthoff <fedora> |
| Component: | pcp | Assignee: | Nathan Scott <nathans> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 33 | CC: | agerstmayr, mgoodwin, nathans |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | pcp-5.2.5-2.fc33 pcp-5.2.5-2.fc32 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-02-24 20:39:54 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Georg Sauthoff
2021-01-31 14:27:00 UTC
Thanks Georg!
This patch seems to resolve the issue, lightly tested only so far:
diff --git a/src/pcp/dstat/pcp-dstat.py b/src/pcp/dstat/pcp-dstat.py
index b8d786bd5..e5c20fba2 100755
--- a/src/pcp/dstat/pcp-dstat.py
+++ b/src/pcp/dstat/pcp-dstat.py
@@ -705,7 +705,7 @@ class DstatTool(object):
sys.exit(1)
if len(operands) > 1:
try:
- self.samples = int(operands[1])
+ self.samples = int(operands[1]) + 1
except:
sys.stderr.write("Invalid sample count '%s'\n" % operands[1])
sys.exit(1)
I'll do some more testing (haven't checked archives yet, nor updated the regression tests) and get this fixed in pcp-5.2.4.
cheers.
FEDORA-2021-c64d2658a0 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-c64d2658a0 FEDORA-2021-4e2b6f6f82 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2021-4e2b6f6f82 FEDORA-2021-c64d2658a0 has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-c64d2658a0` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-c64d2658a0 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2021-4e2b6f6f82 has been pushed to the Fedora 32 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-4e2b6f6f82` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-4e2b6f6f82 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2021-c64d2658a0 has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2021-4e2b6f6f82 has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report. |