Compare commits
No commits in common. "9fbe63af4836556969aa8ba8fc0e91c7214ae23c" and "fe01d4486af6133df164775bf070b9bfe75afcea" have entirely different histories.
9fbe63af48
...
fe01d4486a
|
@ -34,7 +34,6 @@ gboolean attack_detect_freq(struct data_frame *df)
|
||||||
head->AVERAGE_OF_FREQUENCY = 50;
|
head->AVERAGE_OF_FREQUENCY = 50;
|
||||||
head->COUNT = 500;
|
head->COUNT = 500;
|
||||||
head->idcode = to_intconvertor(df->idcode);
|
head->idcode = to_intconvertor(df->idcode);
|
||||||
head->next = NULL;
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -87,7 +86,6 @@ gboolean attack_detect_freq(struct data_frame *df)
|
||||||
bring->AVERAGE_OF_FREQUENCY = 50;
|
bring->AVERAGE_OF_FREQUENCY = 50;
|
||||||
bring->COUNT = 500;
|
bring->COUNT = 500;
|
||||||
bring->idcode = to_intconvertor(df->idcode);
|
bring->idcode = to_intconvertor(df->idcode);
|
||||||
bring->next = NULL;
|
|
||||||
previous->next = bring;
|
previous->next = bring;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -141,7 +139,6 @@ gboolean attack_detect_vol(struct data_frame *df)
|
||||||
headvol->AVERAGE_OF_VOLTAGE = CURR_vol;
|
headvol->AVERAGE_OF_VOLTAGE = CURR_vol;
|
||||||
headvol->COUNT = 500;
|
headvol->COUNT = 500;
|
||||||
headvol->idcode = to_intconvertor(df->idcode);
|
headvol->idcode = to_intconvertor(df->idcode);
|
||||||
headvol->next = NULL;
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -186,7 +183,6 @@ gboolean attack_detect_vol(struct data_frame *df)
|
||||||
bring->COUNT = 500;
|
bring->COUNT = 500;
|
||||||
previous->next = bring;
|
previous->next = bring;
|
||||||
bring->idcode = to_intconvertor(df->idcode);
|
bring->idcode = to_intconvertor(df->idcode);
|
||||||
bring->next = NULL;
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -197,4 +193,4 @@ gboolean attack_detect_freq_vol(struct data_frame *df)
|
||||||
return attack_detect_freq(df) && attack_detect_vol(df);
|
return attack_detect_freq(df) && attack_detect_vol(df);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* pavan changes */
|
/* pavan changes */
|
Loading…
Reference in New Issue