use constants

This commit is contained in:
Thomas Vander Stichele
2009-05-22 20:08:36 +00:00
parent a35b4d4a01
commit bedd5d1fc1

View File

@@ -67,11 +67,12 @@ class ProgressParser(object):
function = m.group('function')
offset = int(m.group('offset'))
if function == 'read':
if offset % 1176 != 0:
print 'THOMAS: not a multiple of 2532', offset
if offset % common.WORDS_PER_FRAME != 0:
print 'THOMAS: not a multiple of %d: %d' % (
common.WORDS_PER_FRAME, offset)
print line
else:
self.read = offset / 1176
self.read = offset / common.WORDS_PER_FRAME
# FIXME: handle errors
class ReadTrackTask(task.Task):