summaryrefslogtreecommitdiffstats
path: root/svm
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-03-31 15:32:54 -0400
committerGerrit Code Review <gerrit@fd.io>2016-04-12 03:44:46 +0000
commitcbed90c8cbf8449ff8ed6da08ec248f1e49a374d (patch)
tree6f4934bf50a7e5fe3a4d9c53300e0cdd1804e54a /svm
parentecec279029a8a507483bc54ace3dca7f623f3fb7 (diff)
Add a configurable "significant error" metric
Change-Id: Idda59272a029ffcbc029f9bb167508d7bd5e6e21 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'svm')
-rw-r--r--svm/svmdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/svm/svmdb.c b/svm/svmdb.c
index 515bc7d2..08da4b32 100644
--- a/svm/svmdb.c
+++ b/svm/svmdb.c
@@ -472,9 +472,9 @@ void svmdb_local_dump_vecs (svmdb_client_t *client)
hash_foreach_mem(key, value, h,
({
svmdb_value_t *v = pool_elt_at_index (shm->values, value);
- (void) fformat(stdout, "%s:\n %U\n", key,
+ (void) fformat(stdout, "%s:\n %U (%.2f)\n", key,
format_hex_bytes, v->value,
- vec_len(v->value)*v->elsize);
+ vec_len(v->value)*v->elsize, ((f64 *)(v->value))[0]);
}));
region_unlock (client->db_rp);