This will allow us to get 304 responses back from remote URLs that we are
grabbing using the curl, weather, and rss plugins. The first time we fetch a
resource, we will always get the full content, but from there on out we will
store any provided 'Etag' or 'Last-Modified' header, and submit these on the
next request. If we get a 304 response back, we won't have to do any work at
all.
This benefits both us (bandwidth and parsing savings) and remote URLs (we
actually make an attempt to not retrieve the same resource over and over
again).
Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
Apparently, sometimes the value of i8k.right_fan_status is sometimes null. This just makes sure
the null value isn't passed to atoi(3). A better solution would be to figure out why is it null,
but I cannot do that as I don't have the hardware.
Patches conky to use getaddrinfo instead of gethostbyname everywhere. gethostbyname is rather
flawed and doesn't support IPv6 properly.
Patch contributed by Pascal Bleser
Additionally, add a nvidia_display variable. This enables the $nvidia variable to be used without
out_to_x yes (X11 support still has to be built in, you just don't have to use it).
they reported fs->size - fs->avail, which is not correct if fs has super-user reserved blocks.
note that now $fs_used_perc and $fs_free_perc need not add up to 100%, but that is consistent
with what $fs_used and $fs_free do.
${top}, ${top_mem} and ${top_time} are now recognized as variables. The
parts of code doing this were in a #ifdef __linux__.
The total CPU time of processes (${top} with "time" argument) is now
printable, and ${top_time} works.
Signed-off-by: Alexander Graf <agraf@znc.in>
Makefile.am: top.c was enlisted as Linux-only source, though it is
required for conky on every operating system.
conky.[ch]: top_running definition was inside #ifdef __linux__, though
required by top.c on every operating system.
freebsd.c: Change return type of update_*() to int, as required by
common.h; remove free_all_processes() as it is defined by top.c. The
changes done to freebsd.c must be done to netbsd.c and openbsd.c, too.
I did not do it as I have no opportunity to test conky under NetBSD or
OpenBSD.
Signed-off-by: Alexander Graf <agraf@znc.in>