Hi,

In the search filter there are the conditions concerned with
file size, where I saw "1 Bytes".

Index: misc.c
===================================================================
RCS file: /cvsroot/gtk-gnutella/gtk-gnutella-current/src/lib/misc.c,v
retrieving revision 1.22
diff -u -r1.22 misc.c
--- misc.c      10 Jan 2005 23:36:10 -0000      1.22
+++ misc.c      21 Jan 2005 06:19:46 -0000
@@ -506,7 +506,9 @@
 {
        static gchar b[SIZE_FIELD_MAX];
 
-       if (size < 1024)
+       if (size == 1)
+               gm_snprintf(b, sizeof(b), "1 Byte");
+       else if (size < 1024)
                gm_snprintf(b, sizeof(b), "%u Bytes", (guint) size);
        else if (size < 1048576)
                gm_snprintf(b, sizeof(b), "%.2f KiB", (gfloat) size / 1024.0);



Thanks.
-- 
Daichi


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to