summaryrefslogtreecommitdiffstats
path: root/grapher/Graph.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-08-04 19:19:31 -0400
committerDave Brolley <brolley@redhat.com>2009-08-04 19:19:31 -0400
commitb6a45931c81fa7c1c0acb7c69146ee67cb19ca9b (patch)
tree033366bdbd943a770dc22b4b358ca7420ae4e0fb /grapher/Graph.cxx
parent500bc85ca6dc99bc65f4157b18e9c48c692a8a20 (diff)
parentda01fcc64df09e39c9eb3ce364ce949e588022c0 (diff)
downloadsystemtap-steved-b6a45931c81fa7c1c0acb7c69146ee67cb19ca9b.tar.gz
systemtap-steved-b6a45931c81fa7c1c0acb7c69146ee67cb19ca9b.tar.xz
systemtap-steved-b6a45931c81fa7c1c0acb7c69146ee67cb19ca9b.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'grapher/Graph.cxx')
-rw-r--r--grapher/Graph.cxx4
1 files changed, 2 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;