Commit ce919683 authored by vysheng's avatar vysheng

Fixed alarm

parent 8cd95c58
...@@ -56,7 +56,7 @@ struct query *query_get (long long id) { ...@@ -56,7 +56,7 @@ struct query *query_get (long long id) {
int alarm_query (struct query *q) { int alarm_query (struct query *q) {
assert (q); assert (q);
if (verbosity) { if (verbosity >= 1) {
logprintf ("Alarm query %lld\n", q->msg_id); logprintf ("Alarm query %lld\n", q->msg_id);
} }
q->ev.timeout = get_double_time () + QUERY_TIMEOUT; q->ev.timeout = get_double_time () + QUERY_TIMEOUT;
...@@ -64,6 +64,7 @@ int alarm_query (struct query *q) { ...@@ -64,6 +64,7 @@ int alarm_query (struct query *q) {
clear_packet (); clear_packet ();
out_int (CODE_msg_container); out_int (CODE_msg_container);
out_int (1);
out_long (q->msg_id); out_long (q->msg_id);
out_int (q->seq_no); out_int (q->seq_no);
out_int (4 * q->data_len); out_int (4 * q->data_len);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment