Enlightenment CVS committal
Author : urandom
Project : e_modules
Module : net
Dir : e_modules/net/src
Modified Files:
e_mod_net.c
Log Message:
increase of the "resolution" of the speed info in the MB range
===================================================================
RCS file: /cvs/e/e_modules/net/src/e_mod_net.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- e_mod_net.c 26 Mar 2007 01:25:10 -0000 1.13
+++ e_mod_net.c 26 Mar 2007 17:06:32 -0000 1.14
@@ -335,9 +335,9 @@
_bytes_to_string(bytes_t bytes, char *string, int size)
{
if (bytes > 1048576)
- snprintf(string, size, "%lu Mb", (bytes / 1048576));
+ snprintf(string, size, "%.2f MB", ((float) bytes / 1048576));
else if ((bytes > 1024) && (bytes < 1048576))
- snprintf(string, size, "%lu Kb", (bytes / 1024));
+ snprintf(string, size, "%lu KB", (bytes / 1024));
else
snprintf(string, size, "%lu B", bytes);
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs