diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-07-05 13:25:17 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-07-05 13:25:17 +0200 |
commit | 61e653c8cd10fdef562cf841c27636287e78a4c2 (patch) | |
tree | 1f9e37076b0ec3342a39b87b5040ec7873c6f836 | |
parent | 00529a2736e43597f6a6b127fbe5b8e6870d80b6 (diff) | |
download | gterm-61e653c8cd10fdef562cf841c27636287e78a4c2.tar.gz |
gload tweaks, manpage
-rw-r--r-- | gload.1 | 28 | ||||
-rw-r--r-- | gload.c | 3 |
2 files changed, 30 insertions, 1 deletions
@@ -0,0 +1,28 @@ +.TH GLOAD 1 "(c) 2019 Gerd Hoffmann" "GLOAD" "load monitor" +\# +\# +.SH NAME +gload - load monitor +\# +\# +.SH SYNOPSIS +.TP +\fBgload +\# +\# +.SH DESCRIPTION +.BR gload +is a load average monitor, inspired by xload. +\# +\# +.SH OPTIONS +No config options yet. +\# +\# +.SH "SEE ALSO" +.BR xload(1) +\# +\# +.SH AUTHOR +Gerd Hoffmann +.BR <gerd@kraxel.org> @@ -195,6 +195,7 @@ static gload *gload_new(void) uname(&uts); gl->label = gtk_label_new(uts.nodename); + gtk_label_set_xalign(GTK_LABEL(gl->label), 0); gtk_box_pack_start(GTK_BOX(vbox), gl->label, false, false, 0); gl->graph = gtk_drawing_area_new(); @@ -215,7 +216,7 @@ int main(int argc, char *argv[]) gl = gload_new(); gload_read(gl); - g_timeout_add_seconds(1, gload_timer, gl); + g_timeout_add_seconds(10, gload_timer, gl); gtk_main(); return 0; |