Skip to content

Commit

Permalink
Set durations to round to 2 decimal places
Browse files Browse the repository at this point in the history
  • Loading branch information
BlythMeister committed Jul 23, 2020
1 parent fe0957e commit 163c995
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BingImageDownload/BingInteractionAndParsing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public BingInteractionAndParsing(ConsoleWriter consoleWriter, ImageFingerprintin
consoleWriter.WriteLine($"Found {countryDownloadedImages} new images for {country.Name}");
consoleWriter.WriteLine($"Found {countryDuplicateImages} duplicate images for {country.Name}");
consoleWriter.WriteLine($"Found {countrySeenUrls} urls already downloaded for {country.Name}");
consoleWriter.WriteLine($"Duration {stopwatch.Elapsed.TotalSeconds} seconds for {country.Name}");
consoleWriter.WriteLine($"Duration {Math.Round(stopwatch.Elapsed.TotalSeconds, 2)} seconds for {country.Name}");
consoleWriter.WriteLine("");

return (countryDownloadedImages, countryDuplicateImages, countrySeenUrls);
Expand Down
2 changes: 1 addition & 1 deletion src/BingImageDownload/Runner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static int Start(RunnerArgs runnerArgs, in CancellationToken cancellation
consoleWriter.WriteLine($"Found {downloadedImages} new images");
consoleWriter.WriteLine($"Found {duplicateImages} duplicate images");
consoleWriter.WriteLine($"Found {seenUrls} urls already downloaded");
consoleWriter.WriteLine($"Duration {stopwatch.Elapsed.TotalMinutes} minutes");
consoleWriter.WriteLine($"Duration {Math.Round(stopwatch.Elapsed.TotalMinutes, 2)} minutes");

if (cancellationToken.IsCancellationRequested)
{
Expand Down

0 comments on commit 163c995

Please sign in to comment.