diff options
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 2 | ||||
-rw-r--r-- | bitbake/lib/toaster/toastergui/templatetags/projecttags.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index dd6466471d..25bc1dbe15 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -424,7 +424,7 @@ class Build(models.Model): | |||
424 | tf = Task.objects.filter(build = self) | 424 | tf = Task.objects.filter(build = self) |
425 | tfc = tf.count() | 425 | tfc = tf.count() |
426 | if tfc > 0: | 426 | if tfc > 0: |
427 | completeper = tf.exclude(order__isnull=True).count()*100/tfc | 427 | completeper = tf.exclude(order__isnull=True).count()*100 // tfc |
428 | else: | 428 | else: |
429 | completeper = 0 | 429 | completeper = 0 |
430 | return completeper | 430 | return completeper |
diff --git a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py index 75f2261be8..1d680365ad 100644 --- a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py +++ b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py | |||
@@ -90,7 +90,7 @@ def whitespace_space_filter(value, arg): | |||
90 | def divide(value, arg): | 90 | def divide(value, arg): |
91 | if int(arg) == 0: | 91 | if int(arg) == 0: |
92 | return -1 | 92 | return -1 |
93 | return int(value) / int(arg) | 93 | return int(value) // int(arg) |
94 | 94 | ||
95 | @register.filter | 95 | @register.filter |
96 | def multiply(value, arg): | 96 | def multiply(value, arg): |