Xinqi Bao's Git

Fix whitespace
[slstatus.git] / components / ram.c
index d2fbce9..91311ac 100644 (file)
@@ -40,8 +40,8 @@
                        return NULL;
                }
 
-               return bprintf("%d", 100 * ((total - free) -
-                                           (buffers + cached)) / total);
+               return bprintf("%d", 100 * ((total - free) - (buffers + cached))
+                               / total);
        }
 
        const char *
@@ -49,8 +49,8 @@
        {
                uintmax_t total;
 
-               if (pscanf("/proc/meminfo", "MemTotal: %ju kB\n",
-                          &total) != 1) {
+               if (pscanf("/proc/meminfo", "MemTotal: %ju kB\n", &total)
+                   != 1) {
                        return NULL;
                }
 
@@ -80,7 +80,7 @@
        #include <sys/types.h>
        #include <unistd.h>
 
-       #define LOG1024         10
+       #define LOG1024 10
        #define pagetok(size, pageshift) (size_t)(size << (pageshift - LOG1024))
 
        inline int