From 2686a832dbca9f8320857ef0ad3bf20e73b59b5a Mon Sep 17 00:00:00 2001 From: William Cohen Date: Tue, 4 Aug 2009 14:00:07 -0400 Subject: Add #include and casting to allow compilations of grapher on RHEL5. --- grapher/Graph.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'grapher/Graph.cxx') 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; -- cgit