From c0a71e41af26ec5e309e8cc611055ac945b6303d Mon Sep 17 00:00:00 2001
From: Sebastien GODARD <sysstat@users.noreply.github.com>
Date: Sun, 13 Jan 2019 10:16:42 +0100
Subject: [PATCH] sadf: SVG: Fix wrong variable used to draw discard IO graph

Fix silly error in svg_stats.c, where values used to draw graph for
discard IO were those for writes.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
---
 svg_stats.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/svg_stats.c b/svg_stats.c
index 5e0363e..866ca1c 100644
--- a/svg_stats.c
+++ b/svg_stats.c
@@ -2243,7 +2243,7 @@ __print_funct_t svg_print_disk_stats(struct activity *a, int curr, int action, s
 				 out + pos + 2, outsize + pos + 2, restart);
 			/* dkB/s */
 			lnappend(record_hdr->ust_time - svg_p->ust_time_ref,
-				 S_VALUE(sdp->wr_sect, sdc->wr_sect, itv) / 2,
+				 S_VALUE(sdp->dc_sect, sdc->dc_sect, itv) / 2,
 				 out + pos + 3, outsize + pos + 3, restart);
 			/* areq-sz */
 			lnappend(record_hdr->ust_time - svg_p->ust_time_ref,
-- 
2.40.0