Skip to content

Commit 3c5f6da

Browse files
authored
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 5411936 commit 3c5f6da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

refact_webgui/dashboards/dash_prime.py

+1-1
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)