From cb6c11b4cfa4d18a6ee10fa3a305f086621d952b Mon Sep 17 00:00:00 2001 From: djbadders <34887832+djbadders@users.noreply.github.com> Date: Mon, 15 Apr 2019 23:45:39 +0100 Subject: [PATCH] Fix to ensure percentage trend is correct --- Monitor/Pages/BagAnalyzer.cshtml | 2 +- Monitor/Pages/_get/BagList.cshtml | 2 +- Monitor/Pages/_get/DashboardTop.cshtml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Monitor/Pages/BagAnalyzer.cshtml b/Monitor/Pages/BagAnalyzer.cshtml index 4095e66..ca3edfb 100644 --- a/Monitor/Pages/BagAnalyzer.cshtml +++ b/Monitor/Pages/BagAnalyzer.cshtml @@ -28,7 +28,7 @@ Market - Trend + Trend Amount Value DCA diff --git a/Monitor/Pages/_get/BagList.cshtml b/Monitor/Pages/_get/BagList.cshtml index 4544586..da6b82b 100644 --- a/Monitor/Pages/_get/BagList.cshtml +++ b/Monitor/Pages/_get/BagList.cshtml @@ -90,7 +90,7 @@ } // Trend - @Html.Raw(dcaLogEntry.PercChange.ToString("#,#0.00", new System.Globalization.CultureInfo("en-US")))% + @Html.Raw((dcaLogEntry.PercChange * 100).ToString("#,#0.00", new System.Globalization.CultureInfo("en-US")))% // Amount @Html.Raw(@dcaLogEntry.Amount) diff --git a/Monitor/Pages/_get/DashboardTop.cshtml b/Monitor/Pages/_get/DashboardTop.cshtml index 6d4c9cd..46e52bf 100644 --- a/Monitor/Pages/_get/DashboardTop.cshtml +++ b/Monitor/Pages/_get/DashboardTop.cshtml @@ -155,7 +155,7 @@ @dcaLogEntry.Market } - @Html.Raw(dcaLogEntry.PercChange.ToString("#,#0.00", new System.Globalization.CultureInfo("en-US")))% + @Html.Raw((dcaLogEntry.PercChange * 100).ToString("#,#0.00", new System.Globalization.CultureInfo("en-US")))% @Html.Raw(dcaLogEntry.TotalCost.ToString("#,#0.000000", new System.Globalization.CultureInfo("en-US")))