Skip to content

Commit 38c323a

Browse files
committed
style: Better formating of list build results
1 parent a87cb3c commit 38c323a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

generator/Common/generate.common.pas

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ procedure TGenerator.BuildStationNames;
111111
begin
112112
raise Exception.Create(Format('File "%s" not found.', [ FInputFile ]));
113113
end;
114-
WriteLn(Format('Done: Processed %d entries from a total of %d weather stations in %d ms', [
115-
count,
116-
FStationNames.Count,
114+
WriteLn(Format('Done: Processed %.n entries from a total of %.n weather stations in %d ms', [
115+
Double(count),
116+
Double(FStationNames.Count),
117117
stop-start
118118
]));
119119
WriteLn;
@@ -130,7 +130,7 @@ function TGenerator.GenerateProgressBar(APosition, AMax, ALength: Int64
130130
Result:= '[';
131131
Result:= Result + StringOfChar('#', filled);
132132
Result:= Result + StringOfChar('-', ALength - filled);
133-
Result:= Result + Format('] %5.2f %% done.', [ percentDone ]);
133+
Result:= Result + Format('] %5.2f %%', [ percentDone ]);
134134
end;
135135

136136
procedure TGenerator.Generate;

0 commit comments

Comments
 (0)