Skip to content

Commit

Permalink
Improve size memory and storage
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Dec 19, 2024
1 parent 640147a commit 1ad8360
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/Corsinvest.ProxmoxVE.Diagnostic.Api/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -987,8 +987,8 @@ private static void CheckThresholdHost(List<DiagnosticResult> result,
"WV0002",
context,
"Usage",
[(rrdData.Average(a => a.Memory.MemoryUsage),
rrdData.Average(a => a.Memory.MemorySize),
[(rrdData.Average(a => (double)a.Memory.MemoryUsage),
rrdData.Average(a => (double)a.Memory.MemorySize),
id,
$"Memory (rrd {thresholdHost.TimeSeries} AVERAGE)") ],
false,
Expand Down Expand Up @@ -1060,7 +1060,7 @@ private static void CheckNodeRrd(List<DiagnosticResult> result,
DiagnosticResultContext.Node,
"Usage",
[(rrdData.Average(a => a.SwapUsage),
rrdData.Average(a => a.SwapSize) ,
rrdData.Average(a => (double)a.SwapSize) ,
id,
$"SWAP (rrd {settings.Node.TimeSeries} AVERAGE)") ],
false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TargetFramework>net8.0</TargetFramework>
<OutputType>Library</OutputType>

<Version>1.6.2</Version>
<Version>1.7.0</Version>
<Company>Corsinvest Srl</Company>
<Authors>Corsinvest Srl</Authors>
<Copyright>Corsinvest
Expand All @@ -24,6 +24,7 @@

<GenerateDocumentationFile>true</GenerateDocumentationFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<!-- Include symbol files (*.pdb) in the built .nupkg -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>
$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
Expand All @@ -39,7 +40,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Corsinvest.ProxmoxVE.Api.Extension" Version="8.2.5" />
<PackageReference Include="Corsinvest.ProxmoxVE.Api.Extension" Version="8.3.0" />
<!-- <ProjectReference
Include="..\..\..\cv4pve-api-dotnet\src\Corsinvest.ProxmoxVE.Api.Extension\Corsinvest.ProxmoxVE.Api.Extension.csproj"
/> -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<Version>1.5.3</Version>
<Version>1.6.0</Version>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>cv4pve-diag</AssemblyName>
<Company>Corsinvest Srl</Company>
Expand All @@ -18,7 +18,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Corsinvest.ProxmoxVE.Api.Shell" Version="8.2.5" />
<PackageReference Include="Corsinvest.ProxmoxVE.Api.Shell" Version="8.3.0" />
<!-- <ProjectReference
Include="..\..\..\cv4pve-api-dotnet\src\Corsinvest.ProxmoxVE.Api.Shell\Corsinvest.ProxmoxVE.Api.Shell.csproj"
/> -->
Expand Down

0 comments on commit 1ad8360

Please sign in to comment.