From 397faaff117f3b3c1dccb7914cc64f5cfa653f8d Mon Sep 17 00:00:00 2001 From: huili Date: Mon, 29 Jul 2019 18:49:56 +0800 Subject: [PATCH] [modify timestamp] --- tests/examples/c/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/examples/c/stream.c b/tests/examples/c/stream.c index 2a92d0c897..623775c780 100755 --- a/tests/examples/c/stream.c +++ b/tests/examples/c/stream.c @@ -167,7 +167,7 @@ void* insert_rows(void *sarg) if (g_thread_exit_flag) break; index++; - sprintf(command, "insert into %s values (now, %d)", winfo->tbl_name, index); + sprintf(command, "insert into %s values (%ld, %d)", winfo->tbl_name, 1546300800000+index*1000, index); if (taos_query(taos, command)) { printf("failed to insert row [%s], reason:%s\n", command, taos_errstr(taos)); } -- GitLab