/[antiright]/antiright/src/wmarmon/wmarmon.c
ViewVC logotype

Diff of /antiright/src/wmarmon/wmarmon.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by jefbed, Sat Jul 2 00:56:58 2005 UTC revision 1.3 by jefbed, Sat Jul 2 01:27:00 2005 UTC
# Line 112  expose() Line 112  expose()
112    XDrawRectangle(display, iconwin, gc, 0, 0, 64, 64);    XDrawRectangle(display, iconwin, gc, 0, 0, 64, 64);
113    XFillRectangle(display, iconwin, gc, 4, 4, 56, 56);    XFillRectangle(display, iconwin, gc, 4, 4, 56, 56);
114    arshell_set_font("5x7");    arshell_set_font("5x7");
115    arshell_set_foreground(200, 250, 200);    arshell_set_foreground(250, 250, 250);
116    XDrawString(display, iconwin, gc, 6, 16, hostname, strlen(hostname));    XDrawString(display, iconwin, gc, 6, 16, hostname, strlen(hostname));
117    asprintf(&string, "%sM fr/sw", swap);    asprintf(&string, "%sM fr/sw", swap);
118      arshell_set_foreground(250, 200, 200);
119    XDrawString(display, iconwin, gc, 6, 24, string, strlen(string));    XDrawString(display, iconwin, gc, 6, 24, string, strlen(string));
120    free(string);    free(string);
121    asprintf(&string, "%s users", users);    asprintf(&string, "%s users", users);
122      arshell_set_foreground(200, 200, 250);
123    XDrawString(display, iconwin, gc, 6, 32, string, strlen(string));    XDrawString(display, iconwin, gc, 6, 32, string, strlen(string));
124    free(string);    free(string);
125      arshell_set_foreground(200, 250, 200);
126    asprintf(&string, "%d%% 1m", (int)(load[0]*100));    asprintf(&string, "%d%% 1m", (int)(load[0]*100));
127    XDrawString(display, iconwin, gc, 6, 40, string, strlen(string));    XDrawString(display, iconwin, gc, 6, 40, string, strlen(string));
128    free(string);    free(string);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26