aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Young <jyoung@gsu.edu>2015-11-15 22:07:55 -0500
committerAnders Broman <a.broman58@gmail.com>2015-11-16 05:00:36 +0000
commit9451e529c475fb8108c7bfe53ad229f32631f517 (patch)
treec298eafb2dc94070f17ddb5723a322927b5a0a8c
parentbbdd89b973353a0df1d98d884c38f3832670bfea (diff)
Qt iograph: Fix off-by-one, insure we plot the last interval.
Bug: 11693 Change-Id: I035eaf7ff049e3631714c112daa5adb29bb90470 Reviewed-on: https://code.wireshark.org/review/11858 Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--ui/qt/io_graph_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/io_graph_dialog.cpp b/ui/qt/io_graph_dialog.cpp
index 0d51ae45b9..2e6da60e39 100644
--- a/ui/qt/io_graph_dialog.cpp
+++ b/ui/qt/io_graph_dialog.cpp
@@ -2001,7 +2001,7 @@ void IOGraph::recalcGraphData(capture_file *cap_file)
mavg_to_add = warmup_interval;
}
- for (int i = 0; i < cur_idx_; i++) {
+ for (int i = 0; i <= cur_idx_; i++) {
double ts = (double) i * interval_ / 1000;
if (x_axis && x_axis->tickLabelType() == QCPAxis::ltDateTime) {
ts += start_time_;