Skip to content

Commit deb484d

Browse files
committed
Updated styling for continuous event submission.
1 parent 3de2674 commit deb484d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Samples/Exceptionless.SampleConsole/Program.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
namespace Exceptionless.SampleConsole {
2929
public class Program {
30-
3130
private static readonly int[] _delays = { 0, 50, 100, 1000 };
3231
private static int _delayIndex = 2;
3332

@@ -306,7 +305,7 @@ private static void ClearConsoleLines(int startLine = 0, int endLine = -1) {
306305
}
307306

308307
private static void SendContinuousEvents(int delay, CancellationToken token, int maxEvents = Int32.MaxValue, int maxDaysOld = 90, Event ev = null) {
309-
Console.SetCursorPosition(0, OPTIONS_MENU_LINE_COUNT + 2);
308+
Console.SetCursorPosition(0, OPTIONS_MENU_LINE_COUNT);
310309
Console.WriteLine("Press 's' to stop sending.");
311310
int eventCount = 0;
312311

@@ -323,7 +322,7 @@ private static void SendContinuousEvents(int delay, CancellationToken token, int
323322
SendEvent(ev, false);
324323
eventCount++;
325324
lock (_writeLock) {
326-
ClearConsoleLines(OPTIONS_MENU_LINE_COUNT, OPTIONS_MENU_LINE_COUNT + 3);
325+
ClearConsoleLines(OPTIONS_MENU_LINE_COUNT + 1, OPTIONS_MENU_LINE_COUNT + 3);
327326
Console.SetCursorPosition(0, OPTIONS_MENU_LINE_COUNT + 2);
328327
Console.WriteLine("Submitted {0} events.", eventCount);
329328
}

0 commit comments

Comments
 (0)