diff options
author | Dave Brolley <brolley@redhat.com> | 2009-04-21 11:11:21 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-04-21 11:11:21 -0400 |
commit | 623a41aeb47995f6b5790e38f9e0e10959f98b4e (patch) | |
tree | e79bd792bfc682f842f804af1c119a751ae18c0c /grapher/GraphWidget.cxx | |
parent | 09fd19d66b9e3318e9e33f604eb2dbe623955123 (diff) | |
parent | d0ea46ceac2e72fe0b86269ea50c004711148158 (diff) | |
download | systemtap-steved-623a41aeb47995f6b5790e38f9e0e10959f98b4e.tar.gz systemtap-steved-623a41aeb47995f6b5790e38f9e0e10959f98b4e.tar.xz systemtap-steved-623a41aeb47995f6b5790e38f9e0e10959f98b4e.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'grapher/GraphWidget.cxx')
-rw-r--r-- | grapher/GraphWidget.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/grapher/GraphWidget.cxx b/grapher/GraphWidget.cxx index 5186c471..a82a8bb6 100644 --- a/grapher/GraphWidget.cxx +++ b/grapher/GraphWidget.cxx @@ -85,8 +85,8 @@ namespace systemtap } if (_autoScaling) { - // line separation - int linesPossible = width / (_lineWidth + 2); + // line separation + int linesPossible = width / ((int)_lineWidth + 2); // Find latest time. double latestTime = 0; for (DatasetList::iterator ditr = _datasets.begin(), @@ -223,9 +223,9 @@ namespace systemtap cr->move_to(20.0, height); cr->line_to(graphWidth, height); cr->stroke(); - std::vector<double> dash(1); + std::valarray<double> dash(1); dash[0] = height / 10; - cr->set_dash(dash, 0); + cr->set_dash(dash, 0.0); for (double tickVal = startTime; tickVal < _right; tickVal += majorUnit) { cr->move_to((tickVal - _left) * horizScale + 20.0, graphHeight - 5); |