some things in display
some things in display

--- a/src/freec.c
+++ b/src/freec.c
@@ -194,7 +194,8 @@
 {
 	mem->pixels_swap_free = (mem->swap_free * conf->bar_length) /
 	                        mem->swap_total;
-	mem->pixels_swap_used = conf->bar_length - mem->pixels_swap_free;
+	mem->pixels_swap_used = conf->bar_length - mem->pixels_swap_free -
+	                        1; //hahaha, dirty
 }
 
 
@@ -202,32 +203,27 @@
 display_meminfo(struct meminfo *mem, struct conf_info *conf)
 {
 	int i;
-	putchar('[');
+	fputs(MEM_TAG" [", stdout);
 	i = mem->pixels_mem_used; //nee to keep mem->pixels*
-	while(i) {
+	while(i--)
 		putchar('u');
-		i--;
-	}
 
 	i = mem->pixels_mem_free;
-	while(i > 0) {
+	while(i--)
 		putchar('f');
-		i--;
-	}
+
 	putchar(']');
 	putchar('\n');
 
-	putchar('[');
+	fputs(SWAP_TAG" [", stdout);
 	i = mem->pixels_swap_used;
-	while(i) {
+	while(i--)
 		putchar('u');
-		i--;
-	}
+
 	i = mem->pixels_swap_free;
-	while(i) {
+	while(i--)
 		putchar('f');
-		i--;
-	}
+
 	putchar(']');
 	putchar('\n');
 }

--- a/src/freec.h
+++ b/src/freec.h
@@ -39,6 +39,7 @@
 {
 	//raw data - in kB !
 	//defines from /proc/meminfo
+#define MEM_TAG "Mem.:"
 #define FREEC_MEM_TOTAL "memtotal:"
 	unsigned int mem_total;
 #define FREEC_MEM_FREE "memfree:"
@@ -54,7 +55,7 @@
 	int pixels_mem_buffered;
 	int pixels_mem_cached;
 	int pixels_mem_free;
-
+#define SWAP_TAG "Swap:"
 #define FREEC_SWAP_TOTAL "swaptotal:"
 	unsigned int swap_total;
 #define FREEC_SWAP_FREE "swapfree:"