[vhffs-dev] [1937] et nextrundate to now if cron job is modified, it helps users to debug the script |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1937
Author: gradator
Date: 2012-01-24 23:30:18 +0100 (Tue, 24 Jan 2012)
Log Message:
-----------
et nextrundate to now if cron job is modified, it helps users to debug the script
Modified Paths:
--------------
trunk/vhffs-api/src/Vhffs/Panel/Cron.pm
Modified: trunk/vhffs-api/src/Vhffs/Panel/Cron.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Cron.pm 2012-01-24 20:51:14 UTC (rev 1936)
+++ trunk/vhffs-api/src/Vhffs/Panel/Cron.pm 2012-01-24 22:30:18 UTC (rev 1937)
@@ -217,6 +217,8 @@
}
$cron->set_interval( $interval*60 );
+ $cron->set_nextrundate( time() );
+
if( $cron->set_reportmail( $reportmail ) ) {
$panel->add_error( gettext('The email you entered fails syntax check') );
return;