From 5dfad04b31e7e32cf276fb195d0f38e3aaa147e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=B6ller?= Date: Sun, 6 Dec 2015 19:42:58 +0100 Subject: [PATCH] Fixed issue #701. Writing temporary 0 values to the sensor (NVIDIA GPU clocks) gets them recorded and leads to wrong sensor min values and wrong recorded/averaged values for plotting. --- Hardware/Nvidia/NvidiaGPU.cs | 9 +++++---- Properties/AssemblyVersion.cs | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Hardware/Nvidia/NvidiaGPU.cs b/Hardware/Nvidia/NvidiaGPU.cs index 8d387b3..798fac6 100644 --- a/Hardware/Nvidia/NvidiaGPU.cs +++ b/Hardware/Nvidia/NvidiaGPU.cs @@ -4,7 +4,7 @@ License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. - Copyright (C) 2009-2014 Michael Möller + Copyright (C) 2009-2015 Michael Möller Copyright (C) 2011 Christian Vallières */ @@ -154,13 +154,14 @@ namespace OpenHardwareMonitor.Hardware.Nvidia { } uint[] values = GetClocks(); - if (values != null) { - clocks[0].Value = 0.001f * values[0]; + if (values != null) { clocks[1].Value = 0.001f * values[8]; - clocks[2].Value = 0.001f * values[14]; if (values[30] != 0) { clocks[0].Value = 0.0005f * values[30]; clocks[2].Value = 0.001f * values[30]; + } else { + clocks[0].Value = 0.001f * values[0]; + clocks[2].Value = 0.001f * values[14]; } } diff --git a/Properties/AssemblyVersion.cs b/Properties/AssemblyVersion.cs index bd71a49..6881d93 100644 --- a/Properties/AssemblyVersion.cs +++ b/Properties/AssemblyVersion.cs @@ -4,11 +4,11 @@ License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. - Copyright (C) 2009-2014 Michael Möller + Copyright (C) 2009-2015 Michael Möller */ using System.Reflection; -[assembly: AssemblyVersion("0.7.1.0")] -[assembly: AssemblyInformationalVersion("0.7.1 Beta")] \ No newline at end of file +[assembly: AssemblyVersion("0.7.1.1")] +[assembly: AssemblyInformationalVersion("0.7.1.1 Alpha")] \ No newline at end of file