summaryrefslogtreecommitdiffstats
path: root/grapher
diff options
context:
space:
mode:
authorWilliam Cohen <wcohen@redhat.com>2009-08-04 14:00:07 -0400
committerWilliam Cohen <wcohen@redhat.com>2009-08-04 14:00:07 -0400
commit2686a832dbca9f8320857ef0ad3bf20e73b59b5a (patch)
tree63168d5bfb54f45004d5ac0d0e7445a0ac824923 /grapher
parent8b095b454b34e88c04592be6c651153f802eced6 (diff)
downloadsystemtap-steved-2686a832dbca9f8320857ef0ad3bf20e73b59b5a.tar.gz
systemtap-steved-2686a832dbca9f8320857ef0ad3bf20e73b59b5a.tar.xz
systemtap-steved-2686a832dbca9f8320857ef0ad3bf20e73b59b5a.zip
Add #include and casting to allow compilations of grapher on RHEL5.
Diffstat (limited to 'grapher')
-rw-r--r--grapher/Graph.cxx4
-rw-r--r--grapher/StapParser.cxx1
2 files changed, 3 insertions, 2 deletions
diff --git a/grapher/Graph.cxx b/grapher/Graph.cxx
index 1fa598c2..d36f284f 100644
--- a/grapher/Graph.cxx
+++ b/grapher/Graph.cxx
@@ -23,9 +23,9 @@ namespace systemtap
if (_autoScaling)
{
// line separation
- int linesPossible = _graphWidth / (_lineWidth + 2);
+ int linesPossible = (int)(_graphWidth / (_lineWidth + 2.0));
// Find latest time.
- double latestTime = 0;
+ double latestTime = 0.0;
for (DatasetList::iterator ditr = _datasets.begin(),
de = _datasets.end();
ditr != de;
diff --git a/grapher/StapParser.cxx b/grapher/StapParser.cxx
index 1c865614..693be919 100644
--- a/grapher/StapParser.cxx
+++ b/grapher/StapParser.cxx
@@ -2,6 +2,7 @@
#include <gtkmm/window.h>
#include <iostream>
+#include <sstream>
namespace systemtap
{