Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 672253 Details for
Bug 891688
sar2pcp doesn't grok f17 /var/lib/sa files
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Workaround time format change in some 10.x systat versions
dash-time.patch (text/plain), 977 bytes, created by
Nathan Scott
on 2013-01-03 23:25:32 UTC
(
hide
)
Description:
Workaround time format change in some 10.x systat versions
Filename:
MIME Type:
Creator:
Nathan Scott
Created:
2013-01-03 23:25:32 UTC
Size:
977 bytes
patch
obsolete
>diff --git a/src/pmimport/sar2pcp/sar2pcp b/src/pmimport/sar2pcp/sar2pcp >index a40b019..ed2f4ef 100755 >--- a/src/pmimport/sar2pcp/sar2pcp >+++ b/src/pmimport/sar2pcp/sar2pcp >@@ -57,6 +57,16 @@ sub dodate($) > return $fields[2] . '-' . $mm_map{$mm} . '-' . $fields[0]; > } > >+sub dotime($) >+{ >+ # convert time format HH-MM-SS from a few 10.x sysstat versions >+ # into the format HH:MM:SS that Date::Parse (reasonably) expects >+ # >+ my ($daytime) = @_; >+ $daytime =~ s/-/:/g; >+ return $daytime; >+} >+ > sub dovalue($) > { > # convert string to floating point value: "0,00" / "0.00" / undef >@@ -259,7 +269,7 @@ pmiStart($ARGV[1], 0); > while (defined(my $token = $parser->get_token())) { > if ($token->is_start_tag) { > if ($token->tag eq 'timestamp') { >- $stamp = dodate($token->attr->{'date'}) . ' ' . $token->attr->{'time'}; >+ $stamp = dodate($token->attr->{'date'}) . ' ' . dotime($token->attr->{'time'}); > $sample++; > $putsts = 0; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 891688
:
672135
| 672253