Make it float
This commit is contained in:
		
							parent
							
								
									52d8f7b250
								
							
						
					
					
						commit
						473d561b84
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -431,7 +431,7 @@ func metricsHandler(c echo.Context) error {
 | 
				
			||||||
	metrics += fmt.Sprintf("rosti_node_sold_memory{hostname=\"%s\"} %d\n", hostname, node.SoldMemory)
 | 
						metrics += fmt.Sprintf("rosti_node_sold_memory{hostname=\"%s\"} %d\n", hostname, node.SoldMemory)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if elapsedMetric != -1 {
 | 
						if elapsedMetric != -1 {
 | 
				
			||||||
		metrics += fmt.Sprintf("rosti_node_stats_time_elapsed{hostname=\"%s\"} %d\n", hostname, elapsedMetric/1000000000)
 | 
							metrics += fmt.Sprintf("rosti_node_stats_time_elapsed{hostname=\"%s\"} %f\n", hostname, float64(elapsedMetric)/1000000000)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	apps, err := processor.List(true)
 | 
						apps, err := processor.List(true)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue