diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2012-10-09 19:12:11 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2012-10-09 19:12:11 +0200 |
commit | 31477a2d3ea7aed871b9dcc87c8a157c747bfae8 (patch) | |
tree | 501f99d0b7efd8cabc667ad1ea1a5c73cd3518f5 /cli.c | |
parent | 252524d32fea5fa63e49f500a1641a619946c036 (diff) | |
download | ipecamera-31477a2d3ea7aed871b9dcc87c8a157c747bfae8.tar.gz ipecamera-31477a2d3ea7aed871b9dcc87c8a157c747bfae8.tar.bz2 ipecamera-31477a2d3ea7aed871b9dcc87c8a157c747bfae8.tar.xz ipecamera-31477a2d3ea7aed871b9dcc87c8a157c747bfae8.zip |
print results even if no frames grabbed
Diffstat (limited to 'cli.c')
-rw-r--r-- | cli.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1292,8 +1292,8 @@ void GrabStats(GRABContext *ctx, struct timeval *end_time) { end_time = &cur; } - if ((ctx->event_count + ctx->missing_count) == 0) - return; +// if ((ctx->event_count + ctx->missing_count) == 0) +// return; duration = pcilib_timediff(&ctx->start_time, end_time); fps_duration = pcilib_timediff(&ctx->first_frame, &ctx->last_frame); @@ -1315,7 +1315,6 @@ void GrabStats(GRABContext *ctx, struct timeval *end_time) { good_fps = (good - 1) / (1.*fps_duration/1000000); } - printf("Run: "); PrintTime(duration); |