[Phphtmllib-devel] SF.net SVN: phphtmllib:[3302] trunk/open2300/lib/core/daemon/ AviProcessorDaemon
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2009-11-26 03:15:22
|
Revision: 3302 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3302&view=rev Author: hemna Date: 2009-11-26 03:15:02 +0000 (Thu, 26 Nov 2009) Log Message: ----------- track image count Modified Paths: -------------- trunk/open2300/lib/core/daemon/AviProcessorDaemon.inc Modified: trunk/open2300/lib/core/daemon/AviProcessorDaemon.inc =================================================================== --- trunk/open2300/lib/core/daemon/AviProcessorDaemon.inc 2009-11-25 22:30:53 UTC (rev 3301) +++ trunk/open2300/lib/core/daemon/AviProcessorDaemon.inc 2009-11-26 03:15:02 UTC (rev 3302) @@ -35,6 +35,13 @@ protected $log; protected $imagesdir; + + /** + * track the number of images we are + * processing. If we have the same number + * as last run...no need to process. + */ + protected $image_count = 0; /** @@ -85,9 +92,9 @@ $num_images = $this->count_images($dirname); - if ($num_images == 0) { + if ($num_images == 0 || ($num_images == $this->image_count)) { //we have nothing to do - $this->log->info("::do_task() found no images to process"); + $this->log->info("::do_task() no images or same count"); } else { $this->log->info("::do_task() found ".$num_images." to process into a movie."); $rate = $this->calculate_rate($num_images); @@ -105,6 +112,9 @@ //now send it to the hosting provider $cmd = "/usr/bin/scp timelapse.flv wx.hemna.com:wx.hemna.com/htdocs/video/".$ymdDate; $this->exec_command($dirname, $cmd); + + //track the image count + $this->image_count = $num_images; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |