Merge pull request #4146 from taosdata/hotfix/sangshuduo/fix-taosdemo-output-big-number

[TD-1974] <fix>: fix big number result output issue.
This commit is contained in:
Shengliang Guan 2020-11-08 09:59:51 +08:00 committed by GitHub
commit 1d227a1dd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -793,9 +793,9 @@ int main(int argc, char *argv[]) {
(ntables * nrecords_per_table) / (t * nrecords_per_request), (ntables * nrecords_per_table) / (t * nrecords_per_request),
t * 1000); t * 1000);
printf("Spent %.4f seconds to insert %d records with %d record(s) per request: %.2f records/second\n", printf("Spent %.4f seconds to insert %lld records with %d record(s) per request: %.2f records/second\n",
t, ntables * nrecords_per_table, nrecords_per_request, t, (long long int)ntables * nrecords_per_table, nrecords_per_request,
ntables * nrecords_per_table / t); ((long long int)ntables * nrecords_per_table) / t);
for (int i = 0; i < threads; i++) { for (int i = 0; i < threads; i++) {
info *t_info = infos + i; info *t_info = infos + i;