aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gload.128
-rw-r--r--gload.c3
2 files changed, 30 insertions, 1 deletions
diff --git a/gload.1 b/gload.1
new file mode 100644
index 0000000..95e688b
--- /dev/null
+++ b/gload.1
@@ -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>
diff --git a/gload.c b/gload.c
index 98e6e45..acacc48 100644
--- a/gload.c
+++ b/gload.c
@@ -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;