diff options
author | Tim Moore <timoore@redhat.com> | 2009-12-01 12:02:24 +0100 |
---|---|---|
committer | Tim Moore <timoore@redhat.com> | 2009-12-01 12:30:42 +0100 |
commit | 572a176d481c329b370ce52e7bec1a49ed76c225 (patch) | |
tree | c4979af7c8089124ee0dd30d63ec14864ea0e9f9 /grapher/StapParser.cxx | |
parent | 211c338e54b096a41170c5bac99eaf33959076f2 (diff) | |
download | systemtap-steved-572a176d481c329b370ce52e7bec1a49ed76c225.tar.gz systemtap-steved-572a176d481c329b370ce52e7bec1a49ed76c225.tar.xz systemtap-steved-572a176d481c329b370ce52e7bec1a49ed76c225.zip |
change time type from double to int64_t
* grapher/Graph.hxx (Graph): Change variables holding the time limits
of the displayed graph from double to int64_t.
* grapher/Graph.cxx (Graph::draw): Do calculations of time differences
using int64_t.
(Graph::getExtents, Graph::setExtents): Change left and right
arguments to int64_t.
* grapher/GraphData.hxx (GraphDataBase): Change time type to int64_t.
(GraphDataBase::elementAsString): New function.
(GraphData::elementAsString): Implementation of that function.
* grapher/StapParser.cxx (parseData): Parse time values from the stap
script as 64 bit values.
Diffstat (limited to 'grapher/StapParser.cxx')
-rw-r--r-- | grapher/StapParser.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/grapher/StapParser.cxx b/grapher/StapParser.cxx index 9e42dab6..ddc14b2d 100644 --- a/grapher/StapParser.cxx +++ b/grapher/StapParser.cxx @@ -25,7 +25,7 @@ vector<string> commaSplit(const boost::sub_range<Glib::ustring>& range) } void StapParser::parseData(shared_ptr<GraphDataBase> gdata, - double time, const string& dataString) + int64_t time, const string& dataString) { std::istringstream stream(dataString); shared_ptr<GraphData<double> > dblptr; @@ -182,7 +182,7 @@ vector<string> commaSplit(const boost::sub_range<Glib::ustring>& range) { vector<string> tokens = commaSplit(dataString); int i = 0; - double time; + int64_t time; vector<string>::iterator tokIter = tokens.begin(); std::istringstream timeStream(*tokIter++); timeStream >> time; @@ -196,7 +196,7 @@ vector<string> commaSplit(const boost::sub_range<Glib::ustring>& range) } else { - double time; + int64_t time; string data; stream >> time >> data; parseData(itr->second, time, data); |