]> git.sesse.net Git - remoteglot-book/blobdiff - binlookup.cpp
Parse timestamps from the binary format. Needs some rework, though.
[remoteglot-book] / binlookup.cpp
index 083941de3fdb663aea033ea823ff1aabf310e294..b3a0488b0672e240c93bff1fc1c3d450c9fbd6a9 100644 (file)
@@ -41,11 +41,11 @@ int main(int argc, char **argv)
                while (mtbl_iter_next(it, &key, &len_key, &val, &len_val)) {
                        string move((char *)(key + prefix_len), len_key - prefix_len);
                        const Count* c = (Count *)val;
-                       printf("%s %d %d %d %u %f %f %d\n", move.c_str(),
+                       printf("%s %d %d %d %u %f %f %d %ld\n", move.c_str(),
                                c->white, c->draw, c->black, c->opening_num,
                                float(c->sum_white_elo) / c->num_elo,
                                float(c->sum_black_elo) / c->num_elo,
-                               c->num_elo);
+                               c->num_elo, c->first_timestamp);
                }
        }
 }