[Modify] Polish it
This commit is contained in:
parent
d316d4fe0f
commit
d3c92a8a02
@ -313,6 +313,7 @@ namespace WebSocketSharp
|
|||||||
|
|
||||||
int cntDigit;
|
int cntDigit;
|
||||||
string cntFmt;
|
string cntFmt;
|
||||||
|
|
||||||
if (cnt < 10000) {
|
if (cnt < 10000) {
|
||||||
cntDigit = 4;
|
cntDigit = 4;
|
||||||
cntFmt = "{0,4}";
|
cntFmt = "{0,4}";
|
||||||
@ -352,6 +353,7 @@ namespace WebSocketSharp
|
|||||||
Func<Action<string, string, string, string>> linePrinter =
|
Func<Action<string, string, string, string>> linePrinter =
|
||||||
() => {
|
() => {
|
||||||
long lineCnt = 0;
|
long lineCnt = 0;
|
||||||
|
|
||||||
return (arg1, arg2, arg3, arg4) => {
|
return (arg1, arg2, arg3, arg4) => {
|
||||||
buff.AppendFormat (
|
buff.AppendFormat (
|
||||||
lineFmt, ++lineCnt, arg1, arg2, arg3, arg4
|
lineFmt, ++lineCnt, arg1, arg2, arg3, arg4
|
||||||
@ -393,6 +395,7 @@ namespace WebSocketSharp
|
|||||||
}
|
}
|
||||||
|
|
||||||
buff.AppendFormat (footerFmt, String.Empty);
|
buff.AppendFormat (footerFmt, String.Empty);
|
||||||
|
|
||||||
return buff.ToString ();
|
return buff.ToString ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user