Skip to content

Commit

Permalink
Merge pull request #8 from AdysTech/mvadu-patch-1
Browse files Browse the repository at this point in the history
Fixed #4
  • Loading branch information
mvadu committed Jan 1, 2016
2 parents 7bf897a + 60642cc commit 3a47f68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Influxer/GenericFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public async Task<ExitCode> ProcessGenericFile(string InputFileName, string tabl
{
Console.WriteLine ("\n Done!! Processed {0}, failed to insert {1}", lineCount, failedCount);
foreach ( var f in failureReasons.Values )
Console.WriteLine ("{0}:{1} - {2} : {3}", f.ExceptionType, f.Message, f.Count, String.Join (",", f.LineNumbers));
Console.Error.WriteLine ("{0} lines ({1}) failed due to {2} ({3})", f.Count, String.Join (",", f.LineNumbers), f.ExceptionType, f.Message);
if ( failedCount == lineCount )
return ExitCode.UnableToProcess;
else
Expand Down
8 changes: 4 additions & 4 deletions Influxer/PerfmonFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,17 @@ public async Task<ExitCode> ProcessPerfMonLog(string InputFileName, InfluxDBClie
Console.Write ("\r{0} Processed {1} ", stopwatch.Elapsed.ToString (@"hh\:mm\:ss"), lineCount);

}

if ( await client.PostPointsAsync (settings.InfluxDB.DatabaseName, points) )
points.Clear ();
if ( points != null )
if ( await client.PostPointsAsync (settings.InfluxDB.DatabaseName, points) )
points.Clear ();

pecrfCounters.Clear ();
stopwatch.Stop ();
if ( failedCount > 0 )
{
Console.WriteLine ("\n Done!! Processed {0}, failed to insert {1} lines, Total Points: {2}", lineCount, failedCount, pointCount);
foreach ( var f in failureReasons.Values )
Console.WriteLine ("{0}:{1} - {2} : {3}", f.ExceptionType, f.Message, f.Count, String.Join (",", f.LineNumbers));
Console.Error.WriteLine ("{0} lines ({1}) failed due to {2} ({3})", f.Count, String.Join (",", f.LineNumbers), f.ExceptionType, f.Message);
if ( failedCount == lineCount )
return ExitCode.UnableToProcess;
else
Expand Down

0 comments on commit 3a47f68

Please sign in to comment.