[gnome-system-monitor] Use correct x-axis labels (fixes #175)
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Use correct x-axis labels (fixes #175)
- Date: Mon, 1 Mar 2021 07:56:29 +0000 (UTC)
commit 48feb01d20d2c68a7e13f945b70eb26a9d548f37
Author: Robert Roth <robert roth off gmail com>
Date: Mon Mar 1 09:56:21 2021 +0200
Use correct x-axis labels (fixes #175)
src/load-graph.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/load-graph.cpp b/src/load-graph.cpp
index 5282ce23..62292f38 100644
--- a/src/load-graph.cpp
+++ b/src/load-graph.cpp
@@ -264,7 +264,7 @@ static void draw_background(LoadGraph *graph) {
}
- const unsigned total_seconds = graph->speed * (graph->num_points - 2) / 1000;
+ const unsigned total_seconds = graph->speed * (graph->num_points - 2) / 1000 * graph->frames_per_unit;
for (unsigned int i = 0; i < 7; i++) {
double x = (i) * (graph->draw_width - graph->rmargin - graph->indent) / 6;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]