Skip to content

Commit

Permalink
Address code review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
karolz-ms committed Oct 31, 2016
1 parent a08f164 commit 2304779
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ EventFlow PerformanceCounter input supports the first method of deterimining cou
| counterCategory | string | Yes | Category of the performance counter to monitor |
| counterName | string | Yes | Name of the counter to monitor. |
| collectionIntervalMsec | integer | No | Sampling interval for the counter. Values for the counter are read not more often than at this rate. Default is 30 seconds. |
| processIdCounterCategory and processIdCounterName | string | No | The category and name of the performance counter that provides process ID to counter instance name mapping. It is not necessary to specify these "Process" counter category and for .NET performance counters. |
| processIdCounterCategory and processIdCounterName | string | No | The category and name of the performance counter that provides process ID to counter instance name mapping. It is not necessary to specify these for the "Process" counter category and for .NET performance counters. |
| useDotNetInstanceNameConvention | boolean | No | Indicates that the counter instance names include process ID as described in [ProcessNameFormat documentation](https://msdn.microsoft.com/en-us/library/dd537616.aspx). |

*Important usage note*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public TrackedPerformanceCounter(PerformanceCounterConfiguration configuration)
Requires.NotNull(configuration, nameof(configuration));

this.Configuration = configuration;
// Set the lastAccessedOn time way in the past so that the data is sampled at startup
this.lastAccessedOn = DateTimeOffset.UtcNow.Subtract(TimeSpan.FromDays(1));
this.disposed = false;
}
Expand Down

0 comments on commit 2304779

Please sign in to comment.