GUI/SensorNotifyIcon.cs
changeset 340 600962f8a298
parent 324 c6ee430d6995
child 344 3145aadca3d2
     1.1 --- a/GUI/SensorNotifyIcon.cs	Mon Feb 13 21:56:29 2012 +0000
     1.2 +++ b/GUI/SensorNotifyIcon.cs	Tue Feb 14 23:07:55 2012 +0000
     1.3 @@ -16,7 +16,7 @@
     1.4  
     1.5    The Initial Developer of the Original Code is 
     1.6    Michael Möller <m.moeller@gmx.ch>.
     1.7 -  Portions created by the Initial Developer are Copyright (C) 2009-2011
     1.8 +  Portions created by the Initial Developer are Copyright (C) 2009-2012
     1.9    the Initial Developer. All Rights Reserved.
    1.10  
    1.11    Contributor(s):
    1.12 @@ -181,17 +181,17 @@
    1.13  
    1.14        switch (sensor.SensorType) {
    1.15          case SensorType.Voltage:
    1.16 -          return string.Format("{0:F11}", sensor.Value);
    1.17 +          return string.Format("{0:F1}", sensor.Value);
    1.18          case SensorType.Clock:
    1.19 -          return string.Format("{0:F11}", 1e-3f * sensor.Value);
    1.20 +          return string.Format("{0:F1}", 1e-3f * sensor.Value);
    1.21          case SensorType.Load: 
    1.22            return string.Format("{0:F0}", sensor.Value);
    1.23          case SensorType.Temperature: 
    1.24            return string.Format("{0:F0}", sensor.Value);
    1.25          case SensorType.Fan: 
    1.26 -          return string.Format("{0:F11}", 1e-3f * sensor.Value);
    1.27 +          return string.Format("{0:F1}", 1e-3f * sensor.Value);
    1.28          case SensorType.Flow:
    1.29 -          return string.Format("{0:F11}", 1e-3f * sensor.Value);
    1.30 +          return string.Format("{0:F1}", 1e-3f * sensor.Value);
    1.31          case SensorType.Control:
    1.32            return string.Format("{0:F0}", sensor.Value);
    1.33          case SensorType.Level:
    1.34 @@ -200,6 +200,8 @@
    1.35            return string.Format("{0:F0}", sensor.Value);
    1.36          case SensorType.Data:
    1.37            return string.Format("{0:F0}", sensor.Value);
    1.38 +        case SensorType.Factor:
    1.39 +          return string.Format("{0:F1}", sensor.Value);
    1.40        }
    1.41        return "-";
    1.42      }
    1.43 @@ -289,6 +291,7 @@
    1.44          case SensorType.Level: format = "\n{0}: {1:F1} %"; break;
    1.45          case SensorType.Power: format = "\n{0}: {1:F0} W"; break;
    1.46          case SensorType.Data: format = "\n{0}: {1:F0} GB"; break;
    1.47 +        case SensorType.Factor: format = "\n{0}: {1:F3} GB"; break;
    1.48        }
    1.49        string formattedValue = string.Format(format, sensor.Name, sensor.Value);
    1.50        string hardwareName = sensor.Hardware.Name;