[chronojump] encoder work of the set in Kcal instead of Cal



commit f7c086380897224858a2d02b44409036c9bd3aa6
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Oct 2 15:46:18 2020 +0200

    encoder work of the set in Kcal instead of Cal

 src/gui/encoderGraphObjects.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/encoderGraphObjects.cs b/src/gui/encoderGraphObjects.cs
index 844518ad..9e194e55 100644
--- a/src/gui/encoderGraphObjects.cs
+++ b/src/gui/encoderGraphObjects.cs
@@ -831,7 +831,7 @@ public class EncoderGraphDoPlot
                        //work
                        if(iterOk) {
                                if(preferences.encoderWorkKcal)
-                                       workTotal += ((EncoderCurve) encoderCaptureListStore.GetValue (iter, 
0)).WorkKcalD * 1000; //in cal
+                                       workTotal += ((EncoderCurve) encoderCaptureListStore.GetValue (iter, 
0)).WorkKcalD;
                                else
                                        workTotal += ((EncoderCurve) encoderCaptureListStore.GetValue (iter, 
0)).WorkJD;
                        }
@@ -918,7 +918,7 @@ public class EncoderGraphDoPlot
                //work
                title += "; " + Catalog.GetString("Work") + ": " + Util.TrimDecimals(workTotal, decimals);
                if(preferences.encoderWorkKcal)
-                       title += " Cal"; //show total work in cal
+                       title += " Kcal";
                else
                        title += " J";
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]