Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Mar 13, 2023
1 parent e9ec8f0 commit 254be71
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions HardwareMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ public static void ReadSensors()
var ct = new PerformanceCounter("Thermal Zone Information", "Temperature", @"\_TZ.THRM", true);
cpuTemp = ct.NextValue() - 273;
ct.Dispose();
}
catch
} catch
{
Logger.WriteLine("Failed reading CPU temp");
}
Expand All @@ -31,8 +30,7 @@ public static void ReadSensors()
batteryDischarge = cb.NextValue() / 1000;
cb.Dispose();

}
catch
} catch
{
Logger.WriteLine("Failed reading Battery discharge");
}
Expand Down

0 comments on commit 254be71

Please sign in to comment.