mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Disregard inadequate nvidia-smi readings for GPU power
This commit is contained in:
@@ -38,6 +38,7 @@ public static class NvidiaSmi
|
||||
if (float.TryParse(output, out float floatValue))
|
||||
{
|
||||
int intValue = (int)floatValue;
|
||||
if (intValue < 50 || intValue > 175) return -1;
|
||||
return intValue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user