Skip to content

Commit 31ed965

Browse files
lulunac27amitya52
authored andcommitted
Fix percentage value range from 0 to 100
The robot/human ratio percentage should range from 0 to 100 percent, not 0 to 1.
1 parent 4f3409a commit 31ed965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

refact_webgui/dashboards/dash_prime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def robot_human_ratio(robot: int, human: int) -> float:
1313
# in older versions of refact LSP negative values of human metric existed
1414
if robot + human == 0:
1515
return 0
16-
return round(robot / (robot + human), 2)
16+
return round(100 * robot / (robot + human), 2)
1717

1818

1919
def barplot_rh(

0 commit comments

Comments
 (0)