Skip to content

Commit

Permalink
Small update.. v3.0.1
Browse files Browse the repository at this point in the history
- Compiled LibreHardwareMonitorLib from latest source and added to project
- Changed memory controller usage monitoring to memory usage monitoring instead as more helpful
- Changed the way some sensor data is read and dealt with
- Small UI change to blend monitoring data font color
- bumped to v3.0.1
  • Loading branch information
SmokeyMcBong committed Jun 24, 2020
1 parent 858f8eb commit a6cd273
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 13 deletions.
Binary file modified MiToolz/Libs/LibreHardwareMonitorLib.dll
Binary file not shown.
10 changes: 8 additions & 2 deletions MiToolz/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
IsTabStop="False">
<TextBlock x:Name="CoreSpeed"
Foreground="Black"
Opacity="0.8"
FontSize="17"
FontStyle="Normal"
FontWeight="Bold">
Expand All @@ -106,6 +107,7 @@
IsTabStop="False">
<TextBlock x:Name="MemSpeed"
Foreground="Black"
Opacity="0.8"
FontSize="17"
FontStyle="Normal"
FontWeight="Bold">
Expand All @@ -123,6 +125,7 @@
IsTabStop="False">
<TextBlock x:Name="CoreLoad"
Foreground="Black"
Opacity="0.8"
FontSize="17"
FontStyle="Normal"
FontWeight="Bold">
Expand All @@ -140,6 +143,7 @@
IsTabStop="False">
<TextBlock x:Name="MemLoad"
Foreground="Black"
Opacity="0.8"
FontSize="17"
FontStyle="Normal"
FontWeight="Bold">
Expand All @@ -157,6 +161,7 @@
IsTabStop="False">
<TextBlock x:Name="CoreTemp"
Foreground="Black"
Opacity="0.8"
FontSize="17"
FontStyle="Normal"
FontWeight="Bold">
Expand All @@ -174,6 +179,7 @@
IsTabStop="False">
<TextBlock x:Name="TotalPower"
Foreground="Black"
Opacity="0.8"
FontSize="17"
FontStyle="Normal"
FontWeight="Bold">
Expand Down Expand Up @@ -476,9 +482,9 @@
Margin="449,126,66,0"
Source="AppIcon.ico"
Cursor="Help"
ToolTip="Build Date : 03-06-2020" />
ToolTip="Build Date : 24-06-2020" />
<TextBlock TextWrapping="Wrap"
Text="MiToolz v3.0.0"
Text="MiToolz v3.0.1"
TextAlignment="Center"
VerticalAlignment="Top"
Margin="449,166,66,0"
Expand Down
20 changes: 11 additions & 9 deletions MiToolz/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Text.RegularExpressions;
Expand All @@ -31,8 +30,8 @@ public partial class MainWindow
private static string _appHotKey;
private static string _soundSwitchHotKeyModifier;
private static string _soundSwitchHotKey;
private const int DelayN = 500;
private const int DelayL = 1000;
private const int DelayShort = 500;
private const int DelayLong = 1000;

public MainWindow()
{
Expand Down Expand Up @@ -305,7 +304,8 @@ private void StartOhMMonitor()
{
if (sensor.Value.Value >= 0)
{
curGpuTemp = sensor.Value.GetValueOrDefault().ToString(CultureInfo.CurrentCulture) + " °C";
roundValue = (int)Math.Round(sensor.Value.GetValueOrDefault());
curGpuTemp = roundValue + " °C";
}
else
{
Expand All @@ -321,19 +321,21 @@ private void StartOhMMonitor()
{
if (sensor.Value.Value >= 0)
{
curGpuLoad = sensor.Value.GetValueOrDefault().ToString(CultureInfo.CurrentCulture) + " %";
roundValue = (int)Math.Round(sensor.Value.GetValueOrDefault());
curGpuLoad = roundValue + " %";
}
else
{
curGpuLoad = " -no data- ";
}
}

if (sensor.Name.Contains("Memory Controller"))
if (sensor.Name.Contains("Memory"))
{
if (sensor.Value.Value >= 0)
{
curMemLoad = sensor.Value.GetValueOrDefault().ToString(CultureInfo.CurrentCulture) + " %";
roundValue = (int)Math.Round(sensor.Value.GetValueOrDefault());
curMemLoad = roundValue + " %";
}
else
{
Expand Down Expand Up @@ -403,7 +405,7 @@ private void StartOhMMonitor()
TotalPower.Text = power;
});
}
await Task.Delay(DelayN);
await Task.Delay(DelayShort);
}
});
}
Expand Down Expand Up @@ -449,7 +451,7 @@ private void ApplyProfile(string profile)

Task.Factory.StartNew(async () =>
{
await Task.Delay(DelayL);
await Task.Delay(DelayLong);

//after setting the profile terminate MSIAfterburner process
TerminateApp("MSIAfterburner");
Expand Down
3 changes: 2 additions & 1 deletion MiToolz/MiToolz.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,15 @@
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>x64</PlatformTarget>
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>
</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>AppIcon.ico</ApplicationIcon>
Expand Down
2 changes: 1 addition & 1 deletion MiToolz/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]

0 comments on commit a6cd273

Please sign in to comment.