Mercurial > hg > octave-nkf
changeset 12053:1740ac0eb9c2 release-3-2-x
__gnuplot_get_var__: if read fails to return data, sleep before trying again
author | Olli Saarela <olli.saarela@gmail.com> |
---|---|
date | Thu, 06 Aug 2009 07:31:45 +0200 |
parents | b50d1eb62747 |
children | e868e6276b5c |
files | scripts/ChangeLog scripts/plot/__gnuplot_get_var__.m |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2009-08-05 Olli Saarela <olli.saarela@gmail.com> + + * plot/__gnuplot_get_var__.m: If read fails to return data, sleep + before trying again. + 2009-08-02 Ben Abbott <bpabbott@mac.com> * plot/gnuplot_drawnow.m: Avoid the flickering x11 window seen with
--- 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