Update of /cvsroot/freevo/freevo/src/www/htdocs
In directory sc8-pr-cvs1:/tmp/cvs-serv20282
Modified Files:
manualrecord.cgi
Log Message:
Changed the way MINCRONPICKUP is used because otherwise it is imposible
to start recording 'now'. It now checks against the stop time since
rec_interface is happy to start recording something that should have
already started. Also I reduced MINCRONPICKUP to 70 seconds which will
give the cron job enough time to run again and account for some processing
time.
Index: manualrecord.cgi
===================================================================
RCS file: /cvsroot/freevo/freevo/src/www/htdocs/manualrecord.cgi,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** manualrecord.cgi 26 Feb 2003 00:23:12 -0000 1.1
--- manualrecord.cgi 26 Feb 2003 03:08:09 -0000 1.2
***************
*** 46,52 ****
# maxinum number of days we can record
MAXDAYS = 7
! #minimum amount of time it would take cron to pick us up in seconds
! #by default it is two minutes since the cron runs every minute
! MINCRONPICKUP = 120
form = cgi.FieldStorage()
--- 46,54 ----
# maxinum number of days we can record
MAXDAYS = 7
!
! # minimum amount of time it would take cron to pick us up in seconds
! # by default it is one minute plus a few seconds since the cron job
! # runs every minute and to allow for processing time.
! MINCRONPICKUP = 70
form = cgi.FieldStorage()
***************
*** 85,89 ****
if abs(stoptime - starttime) < (MAXDAYS * 86400):
if starttime < stoptime:
! if starttime > curtime_epoch + MINCRONPICKUP:
# assign attributes to object
prog = epg_types.TvProgram()
--- 87,93 ----
if abs(stoptime - starttime) < (MAXDAYS * 86400):
if starttime < stoptime:
! if stoptime < curtime_epoch + MINCRONPICKUP:
! errormsg = "Sorry, the stop time does not give enough time for
cron to pickup the change. Please set it to record for a few minutes longer."
! else:
# assign attributes to object
prog = epg_types.TvProgram()
***************
*** 102,107 ****
sys.stdout = so
print "Location: record.cgi\n\n"
- else:
- errormsg = "start time does not give enough time for cron to
pickup change. please set to record two minutes or more after current time."
else:
errormsg = "start time is not before stop time."
--- 106,109 ----
***************
*** 155,159 ****
iter=0
while iter < 60:
! if (curtime[4] + 5 - (curtime[4] % 5)) == iter:
minuteselect = minuteselect + '<option selected
value="'+str(iter)+'">'+str(iter)+"\n"
else:
--- 157,161 ----
iter=0
while iter < 60:
! if (curtime[4] - (curtime[4] % 5)) == iter:
minuteselect = minuteselect + '<option selected
value="'+str(iter)+'">'+str(iter)+"\n"
else:
-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog