Show More
@@ -892,7 +892,10 b' class ScmModel(BaseModel):' | |||||
892 | from rhodecode.model.gist import GIST_STORE_LOC |
|
892 | from rhodecode.model.gist import GIST_STORE_LOC | |
893 |
|
893 | |||
894 | def percentage(part, whole): |
|
894 | def percentage(part, whole): | |
895 |
|
|
895 | whole = float(whole) | |
|
896 | if whole > 0: | |||
|
897 | return 100 * float(part) / whole | |||
|
898 | return 0 | |||
896 |
|
899 | |||
897 | try: |
|
900 | try: | |
898 | # cygwin cannot have yet psutil support. |
|
901 | # cygwin cannot have yet psutil support. |
General Comments 0
You need to be logged in to leave comments.
Login now