Commits

William Giokas committed 394f661

Added network stuff again

going to check useage

Signed-off-by: William Giokas <1007380@gmail.com>

Comments (0)

Files changed (1)

 	char *avgs;
     char *tmchi;
     char *batt;
-    /*char *net;*/
+    char *net;
     char *temp;
 
 	if (!(dpy = XOpenDisplay(NULL))) {
 		avgs   = loadavg();
 		tmchi  = mktimes("Chicago: %Y/%d/%m %H:%M:%S", tzchicago);
         batt   = getbattery("/sys/class/power_supply/BAT0");
-        /*net    = get_netusage();*/
+        net    = get_netusage();
         temp   = gettemperature("/sys/devices/platform/coretemp.0/", "temp1_input");
 
-		status = smprintf(" Batt: %s% | Load:%s | Temp: %s | %s",
-				batt, avgs, temp, tmchi);
+		status = smprintf("wlan0: %s | Batt: %s% | Load:%s | Temp: %s | %s",
+				net, batt, avgs, temp, tmchi);
 		setstatus(status);
 		free(avgs);
         free(tmchi);
         free(batt);
-        /*free(net);*/
+        free(net);
         free(temp);
 		free(status);
 	}