# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
-# $Id: srvderive.in,v 1.1 2010-12-27 00:04:02 ivan Exp $
+# $Id: srvderive.in,v 1.3 2011-06-11 00:44:48 ivan Exp $
# Stanislav Sinyagin <ssinyagin@yahoo.com>
# Combine SUM or MAX from several service IDs and create a new one
if( defined($enddate) )
{
- $endtime = str2time( $startdate );
+ $endtime = str2time( $enddate );
if( not defined($endtime) )
{
Error('Cannot parse end date: ' . $enddate);
}
}
+$dbh->commit or Error($dbh->errstr);
+
Verbose('Database update finished');
exit($ok ? 0:1);