Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
multimedia:apps
devede
devede-size.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File devede-size.patch of Package devede
--- devede_main.py.orig 2010-03-07 01:36:47.000000000 +0100 +++ devede_main.py 2010-03-07 01:52:51.000000000 +0100 @@ -264,7 +264,7 @@ audiorate=element["arate"] if (element["ismpeg"]): - size=element["filesize"]/1000 + size=element["filesize"]/1024 else: size=(length*(element["vrate"]+audiorate))/8 @@ -290,7 +290,7 @@ variable_size.append(element2) discsize,minrate,maxrate=devede_other.get_dvd_size(self.tree,self.disctocreate) - discsize*=1000 # size in kbytes + discsize*=1024 # size in kbytes # remove the space needed by menus discsize-=devede_other.calcule_menu_size(self.structure,self.global_vars["menu_sound_duration"]) @@ -885,7 +885,7 @@ speed1,speed2=devede_other.get_speedup(found) length=devede_other.calcula_tamano_parcial(found["vrate"],found["arate"],found["filesize"],found["olength"],len(found["sub_list"]),found["ismpeg"],found["isvob"],found["cutting"],speed1,speed2) #length=int(((found["vrate"]+found["arate"])*found["olength"])/8000) - w.set_text(str(int(length/1000))) + w.set_text(str(int(length/1024))) w=self.tree.get_object("achap") if found["lchapters"]==0: @@ -929,7 +929,7 @@ w.set_text("") total=devede_other.calcula_tamano_total(self.structure,self.global_vars["menu_sound_duration"],self.disctocreate) - total/=1000 + total/=1024 tamano,minvrate,maxvrate = devede_other.get_dvd_size(self.tree,self.disctocreate) --- devede_convert.py.orig 2010-03-07 01:54:34.000000000 +0100 +++ devede_convert.py 2010-03-07 01:54:35.000000000 +0100 @@ -148,7 +148,7 @@ total*=1.1 # a safe margin of 10% if (freespace<total): - return True,_("Insuficient free space. To create this disc\n%(total)d MBytes are needed, but only %(free)d MBytes are available.") % {'total':int(total/1000),'free':int(freespace/1000)} + return True,_("Insuficient free space. To create this disc\n%(total)d MBytes are needed, but only %(free)d MBytes are available.") % {'total':int(total/1024),'free':int(freespace/1024)} else: return False,"" --- devede_newfiles.py.orig 2010-03-07 01:54:46.000000000 +0100 +++ devede_newfiles.py 2010-03-07 01:54:47.000000000 +0100 @@ -1656,7 +1656,7 @@ # l/=2 #l+=int((8.0*float(len(self.file_properties["sub_list"]))*self.file_properties["olength"])/8000.0) - w.set_text(str(int(l/1000))) + w.set_text(str(int(l/1024))) w=self.tree.get_object("f_size2") if empty: --- devede_other.py.orig 2010-03-07 01:54:50.000000000 +0100 +++ devede_other.py 2010-03-07 01:54:52.000000000 +0100 @@ -368,7 +368,7 @@ length=int((float(length))*((float(speed2))/(float(speed1)))) if ismpeg or isvob: - l=filesize/1000 + l=filesize/1024 else: l=float(((vrate+arate)*length)/8) if cutting!=0:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor