修改按比例执行策略功能
This commit is contained in:
@@ -528,7 +528,7 @@ void policy_action_param_new(int idx, const struct Maat_rule_t* rule, const char
|
||||
item=cJSON_GetObjectItem(json,"enforcement_ratio");
|
||||
if(item && item->type==cJSON_Number)
|
||||
{
|
||||
param->enforcement_ratio = item->valueint;
|
||||
param->enforcement_ratio = item->valuedouble;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -556,7 +556,7 @@ void policy_action_param_new(int idx, const struct Maat_rule_t* rule, const char
|
||||
item=cJSON_GetObjectItem(json,"enforcement_ratio");
|
||||
if(item && item->type==cJSON_Number)
|
||||
{
|
||||
param->enforcement_ratio = item->valueint;
|
||||
param->enforcement_ratio = item->valuedouble;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -593,7 +593,7 @@ void policy_action_param_new(int idx, const struct Maat_rule_t* rule, const char
|
||||
item=cJSON_GetObjectItem(json,"enforcement_ratio");
|
||||
if(item && item->type==cJSON_Number)
|
||||
{
|
||||
param->enforcement_ratio = item->valueint;
|
||||
param->enforcement_ratio = item->valuedouble;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -612,7 +612,7 @@ void policy_action_param_new(int idx, const struct Maat_rule_t* rule, const char
|
||||
item=cJSON_GetObjectItem(json,"enforcement_ratio");
|
||||
if(item && item->type==cJSON_Number)
|
||||
{
|
||||
param->enforcement_ratio = item->valueint;
|
||||
param->enforcement_ratio = item->valuedouble;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user