aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mason <chris.mason@fusionio.com>2013-01-14 16:05:13 -0500
committerChris Mason <chris.mason@fusionio.com>2013-01-14 16:05:13 -0500
commit3b49b4b09f00f901c75d5d9cd31094cceff22f82 (patch)
tree05e3ff79ecd99710e2fb65067d08c1b817f0b1a2
parent619d3c2d6f974ab7b12c539436bd586856135a5b (diff)
downloadiowatcher-3b49b4b09f00f901c75d5d9cd31094cceff22f82.tar.gz
Fix spindle rotation in the movie mode
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
-rw-r--r--plot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plot.c b/plot.c
index 1e9b7d7..7b4e18c 100644
--- a/plot.c
+++ b/plot.c
@@ -939,7 +939,7 @@ int svg_io_graph_movie_array_spindle(struct plot *plot, struct pid_plot_history
"<circle cx=\"%.2f\" cy=\"%.2f\" "
"stroke=\"black\" stroke-width=\"6\" "
"r=\"%.2f\" fill=\"none\"/>\n",
- -spindle_steps * 1.2, center_x, center_y, center_x, center_y, graph_width_extra / 2);
+ spindle_steps * 1.2, center_x, center_y, center_x, center_y, graph_width_extra / 2);
write(plot->fd, line, strlen(line));
snprintf(line, line_len, "<circle cx=\"%.2f\" cy=\"%.2f\" "
"stroke=\"none\" fill=\"red\" r=\"%.2f\"/>\n</g>\n",
@@ -964,7 +964,7 @@ int svg_io_graph_movie_array_spindle(struct plot *plot, struct pid_plot_history
snprintf(line, line_len, "<path transform=\"rotate(%.4f, %.2f, %.2f)\" "
"d=\"M %.2f %.2f a %.2f %.2f 0 0 1 0 5\" "
"stroke=\"%s\" stroke-width=\"4\"/>\n",
- rot, center_x, center_y,
+ -rot, center_x, center_y,
axis_x_off_double(graph_width_extra / 2 + radius) + 8, center_y,
radius, radius, pph->color);