You are not logged in.
Pages: 1
Hi Arnaud,
I found a small issue in TSQLRestServerStats.DebugMessage:
resourcestring
sRestServerStatsDebugMessage =
'Clients now=%d max=%d'#13+
'Data in=%s out=%s'#13+
'Requests=%d Updates=%d Invalid=%d'
{$ifdef MSWINDOWS} // NOTE: This conditional should be also "WITHSTATPROCESS"
+#13'Time spent in requests = %s'
{$endif};
function TSQLRestServerStats.DebugMessage: string;
begin
result := format(sRestServerStatsDebugMessage,
[ClientsCurrent,ClientsMax,kb(IncomingBytes),kb(OutcomingBytes),
Responses,Modified,Invalid{$ifdef WITHSTATPROCESS},ProcessTimeString{$endif}]);
end;
The format function fails, if WITHSTATPROCESS is not defined, because the resource string don't match the parameters.
Best regards!
Offline
Yes, you're right.
This was introduced with the new logging mechanism, since ProcessTime is not available any more.
Thanks for the report.
Offline
Pages: 1