diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-03-21 18:07:44 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-03-21 18:07:44 +0100 |
commit | ac03535bc7d08c4fc05c19eda6271e92b6558e41 (patch) | |
tree | ed33830b5fb6740ca80ba408a113ca944d0906ef /apps/sample-timestamp.cpp | |
parent | f12bef0c3696f87c55210557fb3b056284e82494 (diff) | |
download | ble-toys-ac03535bc7d08c4fc05c19eda6271e92b6558e41.tar.gz ble-toys-ac03535bc7d08c4fc05c19eda6271e92b6558e41.tar.bz2 ble-toys-ac03535bc7d08c4fc05c19eda6271e92b6558e41.tar.xz ble-toys-ac03535bc7d08c4fc05c19eda6271e92b6558e41.zip |
o Dropping empty samples when looking for an end sample.
Diffstat (limited to 'apps/sample-timestamp.cpp')
-rw-r--r-- | apps/sample-timestamp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/sample-timestamp.cpp b/apps/sample-timestamp.cpp index 6672091..0affd36 100644 --- a/apps/sample-timestamp.cpp +++ b/apps/sample-timestamp.cpp @@ -107,7 +107,7 @@ public: return EXIT_FAILURE; } - const int buffer_size = 100; + const int buffer_size = 1024; input.seekg(-buffer_size, ios_base::end); @@ -146,6 +146,7 @@ public: o<string> s = sample.at(relative_key); if (!s) { cerr << "Missing key '" + relative_name + "'." << endl; + cerr << "Found " << sample_buffer->samples.size() << " samples." << endl; cerr << "keys: " << sample.to_string() << endl; return EXIT_FAILURE; } |