File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ async fn update_alert_state(
185
185
alert. id,
186
186
alert. threshold_config. operator,
187
187
alert. threshold_config. value,
188
- format_number ( actual_value) ,
188
+ actual_value,
189
189
alert. get_eval_window( ) ,
190
190
alert. get_eval_frequency( ) ,
191
191
alert. query
@@ -204,23 +204,6 @@ async fn update_alert_state(
204
204
}
205
205
}
206
206
207
- /// Format a number for better readability
208
- fn format_number ( value : f64 ) -> String {
209
- if value. fract ( ) == 0.0 {
210
- // Integer value
211
- format ! ( "{:.0}" , value)
212
- } else if value. abs ( ) < 1.0 {
213
- // Small decimal, show more precision
214
- format ! ( "{:.4}" , value)
215
- . trim_end_matches ( '0' )
216
- . trim_end_matches ( '.' )
217
- . to_string ( )
218
- } else {
219
- // Regular decimal, show 2 decimal places
220
- format ! ( "{:.2}" , value)
221
- }
222
- }
223
-
224
207
fn get_final_value ( records : Vec < RecordBatch > ) -> f64 {
225
208
trace ! ( "records-\n {records:?}" ) ;
226
209
You can’t perform that action at this time.
0 commit comments