Index: trunk/tools/czarplot.pl
===================================================================
--- trunk/tools/czarplot.pl	(revision 28762)
+++ trunk/tools/czarplot.pl	(revision 28772)
@@ -74,5 +74,5 @@
 if (!$end) {$end = $czarDb->getNowTimestamp();}
 if (!$begin) {
-    if ($interval) {$begin = $czarDb->getIntervalInPast($interval);}
+    if ($interval) {$begin = $czarDb->subtractInterval($end, $interval);}
     else {$begin =  strftime('%Y-%m-%d 07:00',localtime);}
 }
