From 5bf6539a9aab8763c601521601e6f3e47ac0cd34 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Thu, 27 Aug 2009 13:32:23 -0700 Subject: [PATCH] don't try to plot if we have no data Ignore-this: 808c5f30dd3fabc33d6980dce972794 darcs-hash:20090827203223-0cb85-2e0d29077c97f12711a1899f0ae9086860a56da4.gz --- driveGnuPlots.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);