From 1321ce7aad8a52a126fe40cfe28a2aab91455ded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1=D1?= =?UTF-8?q?=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Wed, 28 Dec 2011 23:21:19 +0400 Subject: [PATCH] Don't forward metadata from only one file --- src/fs/gnunet-fs-gtk-main_window_file_publish.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/fs/gnunet-fs-gtk-main_window_file_publish.c b/src/fs/gnunet-fs-gtk-main_window_file_publish.c index 9bda67c..61a1c70 100644 --- a/src/fs/gnunet-fs-gtk-main_window_file_publish.c +++ b/src/fs/gnunet-fs-gtk-main_window_file_publish.c @@ -683,7 +683,7 @@ migrate_and_drop (void *cls, const GNUNET_HashCode * key, void *value) struct MetaProcessContext *mpc = cls; struct MetaCounter *counter = value; - if (counter->count >= mpc->threshold) + if (counter->count >= mpc->threshold && counter->count > 1) { GNUNET_CONTAINER_meta_data_insert (mpc->md, "", counter->type, counter->format, counter->value_mimetype, -- 1.7.4