mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-30 13:57:38 +00:00
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.
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
License, v. 2.0. If a copy of the MPL was not distributed with this
|
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/.
|
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
Copyright (C) 2009-2014 Michael Möller <mmoeller@openhardwaremonitor.org>
|
Copyright (C) 2009-2015 Michael Möller <mmoeller@openhardwaremonitor.org>
|
||||||
Copyright (C) 2011 Christian Vallières
|
Copyright (C) 2011 Christian Vallières
|
||||||
|
|
||||||
*/
|
*/
|
||||||
@@ -154,13 +154,14 @@ namespace OpenHardwareMonitor.Hardware.Nvidia {
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint[] values = GetClocks();
|
uint[] values = GetClocks();
|
||||||
if (values != null) {
|
if (values != null) {
|
||||||
clocks[0].Value = 0.001f * values[0];
|
|
||||||
clocks[1].Value = 0.001f * values[8];
|
clocks[1].Value = 0.001f * values[8];
|
||||||
clocks[2].Value = 0.001f * values[14];
|
|
||||||
if (values[30] != 0) {
|
if (values[30] != 0) {
|
||||||
clocks[0].Value = 0.0005f * values[30];
|
clocks[0].Value = 0.0005f * values[30];
|
||||||
clocks[2].Value = 0.001f * values[30];
|
clocks[2].Value = 0.001f * values[30];
|
||||||
|
} else {
|
||||||
|
clocks[0].Value = 0.001f * values[0];
|
||||||
|
clocks[2].Value = 0.001f * values[14];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -4,11 +4,11 @@
|
|||||||
License, v. 2.0. If a copy of the MPL was not distributed with this
|
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/.
|
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
Copyright (C) 2009-2014 Michael Möller <mmoeller@openhardwaremonitor.org>
|
Copyright (C) 2009-2015 Michael Möller <mmoeller@openhardwaremonitor.org>
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyVersion("0.7.1.0")]
|
[assembly: AssemblyVersion("0.7.1.1")]
|
||||||
[assembly: AssemblyInformationalVersion("0.7.1 Beta")]
|
[assembly: AssemblyInformationalVersion("0.7.1.1 Alpha")]
|
Reference in New Issue
Block a user