X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=logread.c;h=2a0ffdece4ad8224c5c16878047b6f6babca73e5;hp=b7f9ebeebae9223d11dc50061530540708b942ad;hb=c28ba8c1947e1b31874bf5888742d1607ed7ae61;hpb=cbf7009718dd00ab1a782532f54ea3f08796f553 diff --git a/logread.c b/logread.c index b7f9ebe..2a0ffde 100644 --- a/logread.c +++ b/logread.c @@ -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",