Commit b9408acd authored by Alessandro Rubini's avatar Alessandro Rubini

wrs-time: fix math error in time used in diagnostics

A stupid error when changing data type. Pity me.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 6de6467f
......@@ -246,6 +246,8 @@ static int wrs_recv_msg(struct pp_instance *ppi, int fd, void *pkt, int len,
} else {
mark_incorrect(t);
}
} else {
mark_incorrect(t);
}
drop:
......
......@@ -183,7 +183,7 @@ static int wrdate_get(struct pp_time *t)
} while((tmp1 != taih) || (tmp2 != tail));
t->secs = tail | ((uint64_t)taih << 32);
t->scaled_nsecs = nsec << 16;
t->scaled_nsecs = (int64_t)nsec << 16;
return 0;
}
......
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