Skip to content

Commit

Permalink
style: Better formating of list build results
Browse files Browse the repository at this point in the history
  • Loading branch information
gcarreno committed Mar 3, 2024
1 parent a87cb3c commit 38c323a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions generator/Common/generate.common.pas
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ procedure TGenerator.BuildStationNames;
begin
raise Exception.Create(Format('File "%s" not found.', [ FInputFile ]));
end;
WriteLn(Format('Done: Processed %d entries from a total of %d weather stations in %d ms', [
count,
FStationNames.Count,
WriteLn(Format('Done: Processed %.n entries from a total of %.n weather stations in %d ms', [
Double(count),
Double(FStationNames.Count),
stop-start
]));
WriteLn;
Expand All @@ -130,7 +130,7 @@ function TGenerator.GenerateProgressBar(APosition, AMax, ALength: Int64
Result:= '[';
Result:= Result + StringOfChar('#', filled);
Result:= Result + StringOfChar('-', ALength - filled);
Result:= Result + Format('] %5.2f %% done.', [ percentDone ]);
Result:= Result + Format('] %5.2f %%', [ percentDone ]);
end;

procedure TGenerator.Generate;
Expand Down

0 comments on commit 38c323a

Please sign in to comment.