Skip to content

Commit

Permalink
Fix deadtime% calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Am6er committed Sep 6, 2024
1 parent 27216de commit 66589e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions BecquerelMonitor/BecquerelMonitor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
<MinimumRequiredVersion>2022.07.08.7</MinimumRequiredVersion>
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>index.html</WebPage>
<ApplicationRevision>2</ApplicationRevision>
<ApplicationVersion>2024.09.06.2</ApplicationVersion>
<ApplicationRevision>3</ApplicationRevision>
<ApplicationVersion>2024.09.06.3</ApplicationVersion>
<UseApplicationTrust>true</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
Expand Down
4 changes: 2 additions & 2 deletions BecquerelMonitor/DCControlPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,10 @@ public void ShowRecordingStatus()
if (totalSeconds != 0.0)
{
cps = (double)activeResultData.EnergySpectrum.ValidPulseCount / totalSeconds;
deadTime = (double)activeResultData.EnergySpectrum.LiveTime / totalSeconds;
deadTime = (double)100.0 * (totalSeconds - activeResultData.EnergySpectrum.LiveTime) / totalSeconds;
}
this.countRateTextBox.Text = cps.ToString("f2");
this.deadTimetextBox.Text = deadTime.ToString("f4");
this.deadTimetextBox.Text = deadTime.ToString("f6");
}

// Token: 0x06000297 RID: 663 RVA: 0x0000BAD8 File Offset: 0x00009CD8
Expand Down
4 changes: 2 additions & 2 deletions BecquerelMonitor/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: AssemblyVersion("2024.09.06.2")]
[assembly: AssemblyVersion("2024.09.06.3")]
[assembly: AssemblyProduct("BecquerelMonitor")]
[assembly: AssemblyCopyright("free")]
[assembly: AssemblyTrademark("none")]
[assembly: AssemblyConfiguration("")]
[assembly: Guid("40110b38-4882-47c1-ad94-a71e58dcb5f8")]
[assembly: AssemblyFileVersion("2024.09.06.2")]
[assembly: AssemblyFileVersion("2024.09.06.3")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyCompany("free")]
[assembly: CompilationRelaxations(8)]
Expand Down

0 comments on commit 66589e4

Please sign in to comment.