Nick Babcock преди 4 години
родител
ревизия
018bcfab31
променени са 4 файла, в които са добавени 2 реда и са изтрити 7 реда
  1. 2 2
      OhmGraphite.Test/TimescaleTest.cs
  2. 0 1
      OhmGraphite/InfluxWriter.cs
  3. 0 3
      OhmGraphite/OhmSensor.cs
  4. 0 1
      OhmGraphite/PrometheusCollection.cs

+ 2 - 2
OhmGraphite.Test/TimescaleTest.cs

@@ -18,7 +18,7 @@ namespace OhmGraphite.Test
                 .WithEnvironment("POSTGRES_PASSWORD", "123456")
                 .WithPortBinding(5432, assignRandomHostPort: true)
                 .WithWaitStrategy(Wait.ForUnixContainer()
-                    .UntilCommandIsCompleted($"pg_isready -h 'localhost' -p '5432'"));
+                    .UntilCommandIsCompleted("pg_isready -h 'localhost' -p '5432'"));
 
             await using var container = testContainersBuilder.Build();
             await container.StartAsync();
@@ -50,7 +50,7 @@ namespace OhmGraphite.Test
                 .WithEnvironment("POSTGRES_PASSWORD", "123456")
                 .WithPortBinding(5432, assignRandomHostPort: true)
                 .WithWaitStrategy(Wait.ForUnixContainer()
-                    .UntilCommandIsCompleted($"pg_isready -h 'localhost' -p '5432'"));
+                    .UntilCommandIsCompleted("pg_isready -h 'localhost' -p '5432'"));
 
             await using var container = testContainersBuilder.Build();
             await container.StartAsync();

+ 0 - 1
OhmGraphite/InfluxWriter.cs

@@ -5,7 +5,6 @@ using System.Threading.Tasks;
 using InfluxDB.LineProtocol.Client;
 using InfluxDB.LineProtocol.Payload;
 using NLog;
-using LibreHardwareMonitor.Hardware;
 
 namespace OhmGraphite
 {

+ 0 - 3
OhmGraphite/OhmSensor.cs

@@ -1,8 +1,5 @@
 using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using LibreHardwareMonitor.Hardware;
 
 namespace OhmGraphite

+ 0 - 1
OhmGraphite/PrometheusCollection.cs

@@ -1,7 +1,6 @@
 using System;
 using System.Text.RegularExpressions;
 using NLog;
-using LibreHardwareMonitor.Hardware;
 using Prometheus;
 
 namespace OhmGraphite