Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-03-29 04:25:44 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-03-29 04:25:44 +0400
commitb64bdb2c1bee4afffad29a763ab76156cf7730c8 (patch)
treef893b43dfae26df9a1b549f706c7b8d202133bcb /build_files/cmake/cmake_static_check_cppcheck.py
parent3eb2724c14b106c648bbd2b49658c0ae76e1e815 (diff)
Checker percentage calc was wrong, also cleanup
Diffstat (limited to 'build_files/cmake/cmake_static_check_cppcheck.py')
-rw-r--r--build_files/cmake/cmake_static_check_cppcheck.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/build_files/cmake/cmake_static_check_cppcheck.py b/build_files/cmake/cmake_static_check_cppcheck.py
index aac522dfdd3..9f012cb7f6d 100644
--- a/build_files/cmake/cmake_static_check_cppcheck.py
+++ b/build_files/cmake/cmake_static_check_cppcheck.py
@@ -70,7 +70,7 @@ def main():
def my_process(i, c, cmd):
if not USE_QUIET:
- percent = 100.0 * (i / (len(check_commands) - 1))
+ percent = 100.0 * (i / len(check_commands))
percent_str = "[" + ("%.2f]" % percent).rjust(7) + " %:"
sys.stdout.flush()