Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Check printf() for output errors
[slstatus.git]
/
config.def.h
diff --git
a/config.def.h
b/config.def.h
index
f94e978
..
45320a3
100644
(file)
--- a/
config.def.h
+++ b/
config.def.h
@@
-1,7
+1,7
@@
/* See LICENSE file for copyright and license details. */
/* interval between updates (in ms) */
/* See LICENSE file for copyright and license details. */
/* interval between updates (in ms) */
-
static const
int interval = 1000;
+
const unsigned
int interval = 1000;
/* text to show if no value can be retrieved */
static const char unknown_str[] = "n/a";
/* text to show if no value can be retrieved */
static const char unknown_str[] = "n/a";
@@
-12,10
+12,15
@@
static const char unknown_str[] = "n/a";
/*
* function description argument (example)
*
/*
* function description argument (example)
*
+ * backlight_perc backlight percentage device name
+ * (intel_backlight)
* battery_perc battery percentage battery name (BAT0)
* battery_perc battery percentage battery name (BAT0)
+ * NULL on OpenBSD
* battery_state battery charging state battery name (BAT0)
* battery_state battery charging state battery name (BAT0)
+ * NULL on OpenBSD
+ * battery_remaining battery remaining HH:MM battery name (BAT0)
+ * NULL on OpenBSD
* cpu_perc cpu usage in percent NULL
* cpu_perc cpu usage in percent NULL
- * cpu_iowait cpu iowait in percent NULL
* cpu_freq cpu frequency in MHz NULL
* datetime date and time format string (%F %T)
* disk_free free disk space in GB mountpoint path (/)
* cpu_freq cpu frequency in MHz NULL
* datetime date and time format string (%F %T)
* disk_free free disk space in GB mountpoint path (/)
@@
-29,8
+34,9
@@
static const char unknown_str[] = "n/a";
* ipv6 IPv6 address interface name (eth0)
* kernel_release `uname -r` NULL
* keyboard_indicators caps/num lock indicators NULL
* ipv6 IPv6 address interface name (eth0)
* kernel_release `uname -r` NULL
* keyboard_indicators caps/num lock indicators NULL
- * load_avg load average format string
- * (%.2f %.2f %.2f)
+ * load_avg load average NULL
+ * netspeed_rx receive network speed interface name (wlan0)
+ * netspeed_tx transfer network speed interface name (wlan0)
* num_files number of files in a directory path
* (/home/foo/Inbox/cur)
* ram_free free memory in GB NULL
* num_files number of files in a directory path
* (/home/foo/Inbox/cur)
* ram_free free memory in GB NULL
@@
-44,6
+50,7
@@
static const char unknown_str[] = "n/a";
* swap_used used swap in GB NULL
* temp temperature in degree celsius sensor file
* (/sys/class/thermal/...)
* swap_used used swap in GB NULL
* temp temperature in degree celsius sensor file
* (/sys/class/thermal/...)
+ * NULL on OpenBSD
* uid UID of current user NULL
* uptime system uptime NULL
* username username of current user NULL
* uid UID of current user NULL
* uptime system uptime NULL
* username username of current user NULL