aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mason <chris.mason@fusionio.com>2013-01-14 16:05:13 -0500
committerChris Mason <clm@fb.com>2014-09-24 12:02:07 -0700
commita8f3acba5691deed38399c363274f440e2527b10 (patch)
tree27cab86cf83b7eea7f0463cf083bfd0ff0efa24f
parent6c984075e39be376f159f831536a8c2dfd620e9a (diff)
downloadblktrace-a8f3acba5691deed38399c363274f440e2527b10.tar.gz
iowatcher: Fix spindle rotation in the movie mode
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
-rw-r--r--iowatcher/plot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iowatcher/plot.c b/iowatcher/plot.c
index 1e9b7d7..7b4e18c 100644
--- a/iowatcher/plot.c
+++ b/iowatcher/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);