# HG changeset patch # User Olli Saarela # Date 1249536705 -7200 # Node ID 1740ac0eb9c28fceffec318c04c6e6bb0c2bdcc5 # Parent b50d1eb627475554904f13271e1863f8debf9518 __gnuplot_get_var__: if read fails to return data, sleep before trying again diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2009-08-05 Olli Saarela + + * plot/__gnuplot_get_var__.m: If read fails to return data, sleep + before trying again. + 2009-08-02 Ben Abbott * plot/gnuplot_drawnow.m: Avoid the flickering x11 window seen with diff --git a/scripts/plot/__gnuplot_get_var__.m b/scripts/plot/__gnuplot_get_var__.m --- a/scripts/plot/__gnuplot_get_var__.m +++ b/scripts/plot/__gnuplot_get_var__.m @@ -127,7 +127,9 @@ str = {}; while (isempty (str)) str = char (fread (istream)'); - if (! isempty (str)) + if (isempty (str)) + sleep (0.05); + else str = regexp (str, "OCTAVE:.*", "match"); str = str{end}(8:end); endif