Skip to content

Commit

Permalink
Merge branch 'orasagar-pcp-bug-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
natoscott committed Sep 10, 2024
2 parents 1d5b91e + 702cefa commit 8756345
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions qa/1988.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ QA output created by 1988

pcp-meminfo output : Display default output
Linux 5.4.17-2136.300.7.el8uek.x86_64 (Mohit-OL8u5-vm1) 09/08/23 x86_64 (2 CPU)
07:06:54
Timestamp : 09/08/2023 07:06:54
MemTotal : 1734892 kB
MemFree : 244744 kB
MemAvailable : 860616 kB
Expand Down Expand Up @@ -51,7 +51,7 @@ DirectMap4k : 362340 kB
DirectMap2M : 1734656 kB
DirectMap1G : 0 kB

07:06:56
Timestamp : 09/08/2023 07:06:56
MemTotal : 1734892 kB
MemFree : 244272 kB
MemAvailable : 860544 kB
Expand Down Expand Up @@ -100,7 +100,7 @@ DirectMap4k : 362340 kB
DirectMap2M : 1734656 kB
DirectMap1G : 0 kB

07:06:58
Timestamp : 09/08/2023 07:06:58
MemTotal : 1734892 kB
MemFree : 243028 kB
MemAvailable : 859744 kB
Expand Down Expand Up @@ -149,7 +149,7 @@ DirectMap4k : 362340 kB
DirectMap2M : 1734656 kB
DirectMap1G : 0 kB

07:07:00
Timestamp : 09/08/2023 07:07:00
MemTotal : 1734892 kB
MemFree : 243232 kB
MemAvailable : 860464 kB
Expand Down Expand Up @@ -201,7 +201,7 @@ DirectMap1G : 0 kB

pcp-meminfo output : Display output when given specified number of samples
Linux 5.4.17-2136.300.7.el8uek.x86_64 (Mohit-OL8u5-vm1) 09/08/23 x86_64 (2 CPU)
07:06:54
Timestamp : 09/08/2023 07:06:54
MemTotal : 1734892 kB
MemFree : 244744 kB
MemAvailable : 860616 kB
Expand Down Expand Up @@ -250,7 +250,7 @@ DirectMap4k : 362340 kB
DirectMap2M : 1734656 kB
DirectMap1G : 0 kB

07:06:56
Timestamp : 09/08/2023 07:06:56
MemTotal : 1734892 kB
MemFree : 244272 kB
MemAvailable : 860544 kB
Expand Down Expand Up @@ -299,7 +299,7 @@ DirectMap4k : 362340 kB
DirectMap2M : 1734656 kB
DirectMap1G : 0 kB

07:06:58
Timestamp : 09/08/2023 07:06:58
MemTotal : 1734892 kB
MemFree : 243028 kB
MemAvailable : 859744 kB
Expand Down
4 changes: 2 additions & 2 deletions src/pcp/meminfo/pcp-meminfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def report(self, manager):

t_s = group.contextCache.pmLocaltime(int(group.timestamp))
time_string = time.strftime(MeminfoOptions.timefmt, t_s.struct_time())
print(time_string)
print("Timestamp".ljust(18) + ": " + time_string)

idx = 0
for metric in METRICS:
Expand All @@ -201,7 +201,7 @@ def report(self, manager):

class MeminfoOptions(pmapi.pmOptions):
context = None
timefmt = "%H:%M:%S"
timefmt = "%m/%d/%Y %H:%M:%S"

def __init__(self):
pmapi.pmOptions.__init__(self, "a:s:S:T:z:A:t:")
Expand Down

0 comments on commit 8756345

Please sign in to comment.