[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipcop-svn
Subject:    [Ipcop-svn] SF.net SVN: ipcop:[2956]
From:       owes () users ! sourceforge ! net
Date:       2009-05-30 7:38:13
Message-ID: E1MAJ8v-0000TD-IJ () dn4whf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 2956
          http://ipcop.svn.sourceforge.net/ipcop/?rev=2956&view=rev
Author:   owes
Date:     2009-05-30 07:38:13 +0000 (Sat, 30 May 2009)

Log Message:
-----------
Fix the rounding to 16 MB.  Sure hope my old math teacher does not see this ...

Modified Paths:
--------------
    ipcop/trunk/src/installer/installer.c

Modified: ipcop/trunk/src/installer/installer.c
===================================================================
--- ipcop/trunk/src/installer/installer.c	2009-05-30 07:28:21 UTC (rev 2955)
+++ ipcop/trunk/src/installer/installer.c	2009-05-30 07:38:13 UTC (rev 2956)
@@ -710,7 +710,7 @@
             if (rc == 2) {
                 /* Flash choosen, test for and ask wanted RAM disk size */
                 /* Calculate a default value, 50% of total memory rounded to 16 MB \
                block */
-                snprintf(string, STRING_SIZE, "%d", ((memtotal+15) * 16) / 32);
+                snprintf(string, STRING_SIZE, "%d", ((memtotal+15)/16) * 8);
                 while (1) {
                     char *values[] = { string, NULL };
                     struct newtWinEntry entries[] =


This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic