From 0b622e87a40319e472910acc51863b44099ad74c Mon Sep 17 00:00:00 2001 From: Vincent Tollu Date: Wed, 3 Jan 2018 14:20:09 +0100 Subject: [PATCH] fix csv export --- CheckHost/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CheckHost/Program.cs b/CheckHost/Program.cs index 1f0556c..e8afcde 100644 --- a/CheckHost/Program.cs +++ b/CheckHost/Program.cs @@ -96,7 +96,7 @@ private void WriteLogHead() m_log.Write(System.DateTime.Now.ToShortDateString() + ";" + System.DateTime.Now.ToLongTimeString() + ";"); m_log.Write(Resources.StartMessage + ";"); - m_log.WriteLine(0 + ";" + 0 + ";" + 0 + ";" + 0); + m_log.WriteLine(0 + ";" + 0 + ";" + 0 + ";" + 0 + ";Startup"); m_log.Flush(); } @@ -109,8 +109,8 @@ private void WriteLogResults(bool IsSuccess, long Time, long TotalTimeUp, long T System.DateTime.Now.ToLongTimeString() + ";"); if (IsSuccess == true) m_log.Write(Resources.OK + ";"); else m_log.Write(Resources.NoCon + ";"); - m_log.WriteLine(percent + ";" + ts.Days + ";" + ts.Hours + ";" + ts.Minutes); - m_log.WriteLine(";" + response); + m_log.WriteLine(percent + ";" + ts.Days + ";" + ts.Hours + ";" + ts.Minutes + ";" + (int)response); + m_log.WriteLine(); m_log.Flush(); }