aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2008-05-27 02:36:32 +0000
committerChristian Grothoff <christian@grothoff.org>2008-05-27 02:36:32 +0000
commit573e31724848a11b4a45e46aa908d811071293ea (patch)
tree4afaa0504c1e9a9eec3ac3b0c83e09fb8d352ae9
parent2a96fc42c9d61c979fa5d283a7cbe363efd3a5aa (diff)
downloadgnunet-gtk-573e31724848a11b4a45e46aa908d811071293ea.tar.gz
gnunet-gtk-573e31724848a11b4a45e46aa908d811071293ea.zip
ok
-rw-r--r--src/plugins/fs/search.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c
index 117c74fc..77214f76 100644
--- a/src/plugins/fs/search.c
+++ b/src/plugins/fs/search.c
@@ -235,13 +235,7 @@ void fs_search_update (SearchList * searchContext,
235 (GNUNET_ECRS_uri_test_equal (have, info->uri)) ) 235 (GNUNET_ECRS_uri_test_equal (have, info->uri)) )
236 { 236 {
237 /* gotcha, create pixbuf and rank info! */ 237 /* gotcha, create pixbuf and rank info! */
238 rank = applicability_rank + availability_rank * availability_certainty * 65536; 238 rank = (int) applicability_rank + (int) (availability_rank * (int) availability_certainty * 65536);
239 if (rank > 1000000)
240 fprintf(stderr,
241 "RANK: %llu from %u %d %u\n", rank,
242 applicability_rank,
243 availability_rank,
244 availability_certainty);
245#define P_HEIGHT 21 239#define P_HEIGHT 21
246#define P_WIDTH 100 240#define P_WIDTH 100
247 pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, 241 pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB,