diff --git a/driveGnuPlots.pl b/driveGnuPlots.pl index dd7b827..8146303 100755 --- a/driveGnuPlots.pl +++ b/driveGnuPlots.pl @@ -204,7 +204,7 @@ sub mainThread { } } - elsif($options{"stream"}) + elsif($options{"stream"} && defined $xlast) { cutOld($xlast - $xwindow); plotStoredData($xlast - $xwindow, $xlast);