mirror of
https://github.com/drasko/codezero.git
synced 2026-06-30 12:34:21 +02:00
Changed ncontainers type to int from string.
This commit is contained in:
@@ -78,7 +78,7 @@ class configuration:
|
|||||||
# Extract number of containers
|
# Extract number of containers
|
||||||
def get_ncontainers(self, name, val):
|
def get_ncontainers(self, name, val):
|
||||||
if name[:len("CONFIG_CONTAINERS")] == "CONFIG_CONTAINERS":
|
if name[:len("CONFIG_CONTAINERS")] == "CONFIG_CONTAINERS":
|
||||||
self.ncontainers = val
|
self.ncontainers = int(val)
|
||||||
|
|
||||||
# TODO: Carry this over to Container() as static method???
|
# TODO: Carry this over to Container() as static method???
|
||||||
def get_container_parameter(self, id, param, val):
|
def get_container_parameter(self, id, param, val):
|
||||||
@@ -163,7 +163,7 @@ class configuration:
|
|||||||
# as an extra checking.
|
# as an extra checking.
|
||||||
if self.ncontainers > 0:
|
if self.ncontainers > 0:
|
||||||
# Sometimes unwanted symbols slip through
|
# Sometimes unwanted symbols slip through
|
||||||
if id >= int(self.ncontainers):
|
if id >= self.ncontainers:
|
||||||
return
|
return
|
||||||
|
|
||||||
container = Container(id)
|
container = Container(id)
|
||||||
@@ -178,7 +178,7 @@ class configuration:
|
|||||||
print 'Arch: %s, %s' % (self.arch, self.subarch)
|
print 'Arch: %s, %s' % (self.arch, self.subarch)
|
||||||
print 'Platform: %s' % self.platform
|
print 'Platform: %s' % self.platform
|
||||||
print 'Symbols:\n %s' % self.all
|
print 'Symbols:\n %s' % self.all
|
||||||
print 'Containers: %s' % self.ncontainers
|
print 'Containers: %d' % self.ncontainers
|
||||||
self.containers_print()
|
self.containers_print()
|
||||||
|
|
||||||
def containers_print(self):
|
def containers_print(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user