Ratio enforcement update
This commit is contained in:
parent
1eee10408e
commit
37c8dc60d9
|
@ -224,13 +224,13 @@ Begin
|
||||||
Exit;
|
Exit;
|
||||||
End;
|
End;
|
||||||
|
|
||||||
If SecLevel.DLRatio > 0 Then
|
If (SecLevel.DLRatio > 0) and ((User.DLs <> 0) or (User.ULs <> 0)) Then
|
||||||
If (User.ULs * SecLevel.DLRatio) <= (User.DLs + 1) Then Begin
|
If (User.ULs * SecLevel.DLRatio) <= (User.DLs + 1) Then Begin
|
||||||
Result := 3;
|
Result := 3;
|
||||||
Exit;
|
Exit;
|
||||||
End;
|
End;
|
||||||
|
|
||||||
If SecLevel.DLKRatio > 0 Then
|
If (SecLevel.DLKRatio > 0) and ((User.DLs <> 0) or (User.ULs <> 0)) Then
|
||||||
If (User.ULk * SecLevel.DLkRatio) <= (User.DLk + (FDir.Size DIV 1024)) Then Begin
|
If (User.ULk * SecLevel.DLkRatio) <= (User.DLk + (FDir.Size DIV 1024)) Then Begin
|
||||||
Result := 3;
|
Result := 3;
|
||||||
Exit;
|
Exit;
|
||||||
|
|
Loading…
Reference in New Issue