commit
c0347c31fb
|
@ -125,21 +125,26 @@ namespace Core.Main
|
||||||
_state = value;
|
_state = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public void WriteStateToFile()
|
public void WriteStateToFile()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
try
|
|
||||||
{
|
|
||||||
mutex.WaitOne(); // Acquire the mutex
|
mutex.WaitOne(); // Acquire the mutex
|
||||||
|
|
||||||
string filePath = "_data/AnalyzerState.";
|
string dirPath = "_data";
|
||||||
|
string filePath = Path.Combine(dirPath, "AnalyzerState.");
|
||||||
|
|
||||||
|
// Ensure the directory exists
|
||||||
|
Directory.CreateDirectory(dirPath);
|
||||||
|
|
||||||
File.WriteAllText(filePath, this.State.ToString());
|
File.WriteAllText(filePath, this.State.ToString());
|
||||||
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
mutex.ReleaseMutex(); // Release the mutex even if exceptions occur
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
mutex.ReleaseMutex(); // Release the mutex even if exceptions occur
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public int RunCount
|
public int RunCount
|
||||||
|
|
|
@ -349,6 +349,7 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
(function ($) {
|
(function ($) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
// $('head').append('<style>.nv-point { stroke-width: 1px; }</style>');
|
||||||
$('[role="tooltip"]').remove();
|
$('[role="tooltip"]').remove();
|
||||||
$('[data-toggle="tooltip"]').tooltip();
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
$('.text-autocolor').autocolor(false);
|
$('.text-autocolor').autocolor(false);
|
||||||
|
@ -362,6 +363,7 @@
|
||||||
trendChart = nv.models.lineChart();
|
trendChart = nv.models.lineChart();
|
||||||
var height = 300;
|
var height = 300;
|
||||||
trendChart.useInteractiveGuideline(true);
|
trendChart.useInteractiveGuideline(true);
|
||||||
|
trendChart.pointSize(0.25); // Set the point size to a smaller value
|
||||||
trendChart.xAxis.tickFormat(function (d) { return d3.time.format('%H:%M')(new Date(d)); });
|
trendChart.xAxis.tickFormat(function (d) { return d3.time.format('%H:%M')(new Date(d)); });
|
||||||
trendChart.yAxis.axisLabel('Trend %').tickFormat(d3.format(',.2f'));
|
trendChart.yAxis.axisLabel('Trend %').tickFormat(d3.format(',.2f'));
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ using Core.Helper;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
|
|
||||||
[assembly: AssemblyVersion("2.8.1")]
|
[assembly: AssemblyVersion("2.8.2")]
|
||||||
[assembly: AssemblyProduct("PT Magic")]
|
[assembly: AssemblyProduct("PT Magic")]
|
||||||
|
|
||||||
namespace PTMagic
|
namespace PTMagic
|
||||||
|
|
Loading…
Reference in New Issue