Corrected the source code format.

This commit is contained in:
Michael Möller
2016-11-06 12:15:29 +01:00
parent 51c6d776e1
commit 4f87cc3bb4

View File

@@ -210,12 +210,12 @@ namespace OpenHardwareMonitor.Hardware.Nvidia {
uint freeMemory = memoryInfo.Values[4];
float usedMemory = Math.Max(totalMemory - freeMemory, 0);
memoryFree.Value = (float)freeMemory/ 1024;
memoryAvail.Value = (float)totalMemory/ 1024;
memoryUsed.Value = usedMemory/ 1024;
memoryAvail.Value = (float)totalMemory/ 1024;
memoryUsed.Value = usedMemory/ 1024;
memoryLoad.Value = 100f * usedMemory / totalMemory;
ActivateSensor(memoryAvail);
ActivateSensor(memoryUsed);
ActivateSensor(memoryFree);
ActivateSensor(memoryUsed);
ActivateSensor(memoryFree);
ActivateSensor(memoryLoad);
}
}