[dotnet-counters] Make refresh-interval optional (#253)
authorSung Yoon Whang <suwhang@microsoft.com>
Mon, 6 May 2019 22:28:04 +0000 (15:28 -0700)
committerGitHub <noreply@github.com>
Mon, 6 May 2019 22:28:04 +0000 (15:28 -0700)
* --refresh-interval is now optional

* Make the default refresh-interval 1

src/Tools/dotnet-counters/Program.cs

index 762e277bdaf07f2f1dc1d7df793795610d7a6c0f..25158dbd212e5e1b23bde29ea3b311049e089a3f 100644 (file)
@@ -35,7 +35,7 @@ namespace Microsoft.Diagnostics.Tools.Counters
             new Option(
                 new[] { "--refresh-interval" }, 
                 "The number of seconds to delay between updating the displayed counters.",
-                new Argument<int> { Name = "refresh-interval" });
+                new Argument<int>(defaultValue: 1) { Name = "refresh-interval" });
 
         private static Argument CounterList() =>
             new Argument<List<string>> {