summaryrefslogtreecommitdiffstats
path: root/grapher/Graph.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'grapher/Graph.cxx')
-rw-r--r--grapher/Graph.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/grapher/Graph.cxx b/grapher/Graph.cxx
index 1d478790..e7c03bd1 100644
--- a/grapher/Graph.cxx
+++ b/grapher/Graph.cxx
@@ -96,11 +96,11 @@ namespace systemtap
cr->translate(0.0, _graphHeight);
cr->scale(1.0, -1.0);
GraphDataBase::TimeList::iterator lower
- = std::lower_bound(graphData->times.begin(), graphData->times.end(),
- _left);
+ = lower_bound(graphData->times.begin(), graphData->times.end(),
+ _left);
GraphDataBase::TimeList::iterator upper
- = std::upper_bound(graphData->times.begin(), graphData->times.end(),
- _right);
+ = upper_bound(graphData->times.begin(), graphData->times.end(),
+ _right);
// event bar
if (graphData->style == GraphDataBase::EVENT)
{
@@ -265,6 +265,6 @@ namespace systemtap
int64_t Graph::getTimeAtPoint(double x)
{
- return _left + (_right - _left) * ((x - 20.0)/_graphWidth);
+ return _left + (_right - _left) * ((x - 20.0)/(_zoomFactor * _graphWidth));
}
}