diff options
author | John Crispin <blogic@openwrt.org> | 2013-04-25 21:37:25 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-04-25 21:40:08 +0200 |
commit | c28ba8c1947e1b31874bf5888742d1607ed7ae61 (patch) | |
tree | bf3813816f56c72ae46048f78b1955ba34cbabd0 /logread.c | |
parent | 7edfbb45edcf275a855f5e1f5cc24cac81e382ff (diff) | |
download | unitd-c28ba8c1947e1b31874bf5888742d1607ed7ae61.tar unitd-c28ba8c1947e1b31874bf5888742d1607ed7ae61.zip |
fix 32 wrap around bug when handling 64 bit time values
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'logread.c')
-rw-r--r-- | logread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -130,7 +130,7 @@ static void read_cb(struct ubus_request *req, int type, struct blob_attr *msg) if (!tb[LOG_MSG] || !tb[LOG_ID] || !tb[LOG_PRIO] || !tb[LOG_SOURCE] || !tb[LOG_TIME]) continue; - t = blobmsg_get_u64(tb[LOG_TIME]) / 1000; + t = blobmsg_get_u64(tb[LOG_TIME]); c = ctime(&t); c[strlen(c) - 1] = '\0'; printf("%s - %s: %s\n", |