@@ -27,14 +27,14 @@ public override string Version
27
27
28
28
private string name ;
29
29
private VTM VTM ;
30
- private double APIVersion ;
30
+ private decimal APIVersion ;
31
31
32
32
// Create Dictionary of EpochProcessors to track rate over time for unknown number of items
33
33
private Dictionary < string , IProcessor > processors = new Dictionary < string , IProcessor > ( ) ;
34
34
35
35
private Logger log = Logger . GetLogger ( typeof ( VTMAgent ) . Name ) ;
36
36
37
- public VTMAgent ( string name , string host , int port , string username , string password , double APIVersion )
37
+ public VTMAgent ( string name , string host , int port , string username , string password , decimal APIVersion )
38
38
{
39
39
this . name = name ;
40
40
this . VTM = new VTM ( host , port , username , password ) ;
@@ -87,7 +87,7 @@ private void PollGlobal()
87
87
ReportMetric ( "global/sys_cpu_busy_percent" , "percent" , globalStats . sys_cpu_busy_percent ) ;
88
88
89
89
// Get Global Status API v3.7+
90
- if ( APIVersion >= 3.7 )
90
+ if ( APIVersion >= 3.7m )
91
91
{
92
92
dynamic globalStatus = VTM . fetchVTMObject < dynamic > ( $ "/api/tm/{ APIVersion } /status/local_tm/state") ;
93
93
@@ -110,7 +110,7 @@ private void PollPool()
110
110
dynamic failedNodes = null ;
111
111
112
112
// Get Global Status API v3.7+
113
- if ( APIVersion >= 3.7 )
113
+ if ( APIVersion >= 3.7m )
114
114
{
115
115
failedNodes = VTM . fetchVTMObject < dynamic > ( $ "/api/tm/{ APIVersion } /status/local_tm/state") . state . failed_nodes ;
116
116
}
0 commit comments