Skip to content

Commit

Permalink
Changed variable name for file
Browse files Browse the repository at this point in the history
  • Loading branch information
s3inlc authored Oct 31, 2018
1 parent 4b1893e commit 178a97f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htpserver/HTService.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def run(self):
logging.info("Retrieved " + str(len(entries)) + " file download entries.")

for file_download in entries:
file = self.database.get_file(file_download['fileId'])
db_file = self.database.get_file(file_download['fileId'])

# Build command
# ./uftp -z -I <interface> -Ctfmcc / -R <rate> <file>
Expand All @@ -59,7 +59,7 @@ def run(self):
cmd += "-R " + str(self.config.get_value('multicastTranserRate')) + ' '
else:
cmd += "-Ctfmcc " # flow-control enabled (default)
cmd += self.working_dir + "/../../files/" + file['filename']
cmd += self.working_dir + "/../../files/" + db_file['filename']
logging.info("CALL: " + cmd)
output = []
try:
Expand All @@ -82,5 +82,5 @@ def run(self):
# TODO: maybe this checks need to be extended to improve checking for errors
status = -1

self.database.update_entry(status, file['fileId'])
self.database.update_entry(status, db_file['fileId'])
time.sleep(5)

0 comments on commit 178a97f

Please sign in to comment.