mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-23 21:36:28 +08:00
[plotter] disable usused std and average computation to prevent glib warning (fix #1936)
This commit is contained in:
@@ -282,11 +282,11 @@ class plot = fun ~size ~update_time ~width ~height ~packing () ->
|
||||
dr#set_foreground (`NAME a.color);
|
||||
dr#lines !curve;
|
||||
end;
|
||||
let fn = float !n in
|
||||
(*let fn = float !n in
|
||||
let avg = !sum /. fn in
|
||||
let stdev = sqrt ((!sum_squares -. fn *. avg *. avg) /. fn) in
|
||||
set_float_value a.average avg;
|
||||
set_float_value a.stdev stdev;
|
||||
set_float_value a.stdev stdev;*)
|
||||
|
||||
(* Title *)
|
||||
Pango.Layout.set_text layout title;
|
||||
|
||||
Reference in New Issue
Block a user