profile: don't add excessive depth

The old get_maxdepth() function in profile.c was accounting for
two things:
- the partial pressure graphs
- rounding to sane value

Both are now taken care of by the profile itself. This leads to
excessive max-depths. Remove the code from profile.c.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-12-04 21:04:26 +01:00 committed by Dirk Hohndel
parent de71435c11
commit 725fda3cd1
2 changed files with 5 additions and 18 deletions

View file

@ -95,9 +95,7 @@ extern void free_plot_info_data(struct plot_info *pi);
*/
extern int get_maxtime(const struct plot_info *pi);
/* get the maximum depth to which we want to plot
* take into account the additional verical space needed to plot
* partial pressure graphs */
/* get the maximum depth to which we want to plot */
extern int get_maxdepth(const struct plot_info *pi);
static inline int get_plot_pressure_data(const struct plot_info *pi, int idx, enum plot_pressure sensor, int cylinder)