style: Add deprecated warning and version to win_perf_counters option (#10579)

This commit is contained in:
Thomas Casteleyn 2022-02-03 17:33:38 +01:00 committed by GitHub
parent 48682ff5f9
commit bd5c859fd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -87,7 +87,7 @@ Example:
#### PreVistaSupport
(Deprecated. Necessary features on Windows Vista and newer are checked dynamically)
(Deprecated in 1.7; Necessary features on Windows Vista and newer are checked dynamically)
Bool, if set to `true`, the plugin will use the localized PerfCounter interface that has been present since before Vista for backwards compatibility.

View File

@ -150,9 +150,8 @@ var sampleConfig = `
`
type Win_PerfCounters struct {
PrintValid bool
//deprecated: determined dynamically
PreVistaSupport bool
PrintValid bool `toml:"PrintValid"`
PreVistaSupport bool `toml:"PreVistaSupport" deprecated:"1.7.0;determined dynamically"`
UsePerfCounterTime bool
Object []perfobject
CountersRefreshInterval config.Duration