Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
daniilkk authored Feb 11, 2024
1 parent b2a361f commit 755f4a8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/battery-graph.in
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,10 @@ ZERO_BIOS_ESTIMATE=`tail -n 1 $TMPFILENAME | awk '{ print $6 }'`


(
if $text ; then
echo set terminal dumb ${COLUMNS:-$(tput cols)} ${LINES:-$(tput lines)}
if $text ; then
echo set terminal dumb ${COLUMNS:-$(tput cols)} ${LINES:-$(tput lines)}
else
echo set terminal qt title \"${title}\"
fi

echo call \"${libdir}/graph-setup\"
Expand Down Expand Up @@ -219,7 +221,7 @@ ZERO_BIOS_ESTIMATE=`tail -n 1 $TMPFILENAME | awk '{ print $6 }'`
echo ", g(x -($TIME_LAST_DISCHARGE_BEGIN-$adjustment) ) title (B<0?sprintf(\"slope= (%.2f +/- %.2f) %/h\", B*3600, B_err*3600):\"\") lc rgb \"black\" lt 2 "
fi

) | gnuplot -persist ${geometry:+-geometry} $geometry ${title:+-title} "${title}" ; rm -f $TMPFILENAME
) | gnuplot -persist ${geometry:+-geometry} $geometry ; rm -f $TMPFILENAME


# TODO Have to decide if we want to clean up or leave the file for us to zoom in/out in the graph
Expand Down

1 comment on commit 755f4a8

@RX14
Copy link

@RX14 RX14 commented on 755f4a8 May 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@daniilkk This works for me too, could you PR this upstream?

Please sign in to comment.