diff --git a/Program.cs b/Program.cs index 4a860c5..d081051 100644 --- a/Program.cs +++ b/Program.cs @@ -36,7 +36,7 @@ private static void queryData(object source, ElapsedEventArgs e) SmartTools.loadSmartData(disk, !fourBytes); StringBuilder logstring = new StringBuilder(); - logstring.Append((e.SignalTime - start_time).TotalSeconds.ToString(us)).Append(","); + logstring.Append((DateTime.Now - start_time).TotalSeconds.ToString(us)).Append(","); logstring.Append(worker.GetWrittenMBytes().ToString(us)).Append(","); logstring.Append(worker.GetPerformance().ToString(us)).Append(","); logstring.Append(worker.GetInstPerformance().ToString(us)).Append(","); @@ -343,7 +343,7 @@ static void Main(string[] args) if (Console.KeyAvailable && Console.ReadKey(true).Key == ConsoleKey.Escape) break; - if (howLong > 0 && (DateTime.Now - start_time).TotalMinutes > howLong) + if (howLong > 0 && Math.Floor((DateTime.Now - start_time).TotalSeconds) > howLong * 60) break; Thread.Sleep(100);