mirror of
				https://github.com/Icinga/icinga2.git
				synced 2025-10-31 11:14:10 +01:00 
			
		
		
		
	Fix min/max execution_time
fixes #12225 Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
This commit is contained in:
		
							parent
							
								
									730d959374
								
							
						
					
					
						commit
						54eb9540b1
					
				| @ -312,8 +312,8 @@ void CIB::StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata) { | |||||||
| 	status->Set("min_latency", scs.min_latency); | 	status->Set("min_latency", scs.min_latency); | ||||||
| 	status->Set("max_latency", scs.max_latency); | 	status->Set("max_latency", scs.max_latency); | ||||||
| 	status->Set("avg_latency", scs.avg_latency); | 	status->Set("avg_latency", scs.avg_latency); | ||||||
| 	status->Set("min_execution_time", scs.min_latency); | 	status->Set("min_execution_time", scs.min_execution_time); | ||||||
| 	status->Set("max_execution_time", scs.max_latency); | 	status->Set("max_execution_time", scs.max_execution_time); | ||||||
| 	status->Set("avg_execution_time", scs.avg_execution_time); | 	status->Set("avg_execution_time", scs.avg_execution_time); | ||||||
| 
 | 
 | ||||||
| 	ServiceStatistics ss = CalculateServiceStats(); | 	ServiceStatistics ss = CalculateServiceStats(); | ||||||
|  | |||||||
| @ -68,8 +68,8 @@ void IcingaCheckTask::ScriptFunc(const Checkable::Ptr& service, const CheckResul | |||||||
| 	perfdata->Add(new PerfdataValue("min_latency", scs.min_latency)); | 	perfdata->Add(new PerfdataValue("min_latency", scs.min_latency)); | ||||||
| 	perfdata->Add(new PerfdataValue("max_latency", scs.max_latency)); | 	perfdata->Add(new PerfdataValue("max_latency", scs.max_latency)); | ||||||
| 	perfdata->Add(new PerfdataValue("avg_latency", scs.avg_latency)); | 	perfdata->Add(new PerfdataValue("avg_latency", scs.avg_latency)); | ||||||
| 	perfdata->Add(new PerfdataValue("min_execution_time", scs.min_latency)); | 	perfdata->Add(new PerfdataValue("min_execution_time", scs.min_execution_time)); | ||||||
| 	perfdata->Add(new PerfdataValue("max_execution_time", scs.max_latency)); | 	perfdata->Add(new PerfdataValue("max_execution_time", scs.max_execution_time)); | ||||||
| 	perfdata->Add(new PerfdataValue("avg_execution_time", scs.avg_execution_time)); | 	perfdata->Add(new PerfdataValue("avg_execution_time", scs.avg_execution_time)); | ||||||
| 
 | 
 | ||||||
| 	ServiceStatistics ss = CIB::CalculateServiceStats(); | 	ServiceStatistics ss = CIB::CalculateServiceStats(); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user