1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-27 20:44:56 +00:00
Commit Graph

2234 Commits

Author SHA1 Message Date
Pavel Labath
324de5934e Ignore whitespace in parameters of $pid_* (sf.net #3423766)
This enables one to pass the output of $top to these variables. It was not possible before,
because $top pads the pids with spaces.
2011-10-15 14:11:04 +02:00
Pavel Labath
70032e713a Don't abort when config references a non-existant hwmon file
this sort of fixes sf.net #3306538. The person there correctly tested for the existance of the
file with $if_existing, but the problem is we run the callbacks regardless of the conditional
tests.
2011-10-15 14:10:40 +02:00
Pavel Labath
8905dbb313 Add uid to "top" output (sf.net #3178916)
original patch submitted by Thomas Wiegner, I added support for printing of raw uids.
2011-10-10 21:54:18 +02:00
Pavel Labath
7ddec25d60 add vim modeline to top.h 2011-10-10 21:44:58 +02:00
Pavel Labath
12968587a4 Remove SECRIT_MULTILINE_CHAR hack
Noone knows what it was supposed to do and removing it seems to fix sf.net #3411610 (and probably
a few others). If it turns out it was doing something useful, we will try to reintroduce it
without breaking other things.
2011-10-10 20:51:35 +02:00
Pavel Labath
27647cad81 Don't crash when expanding undefined template (sf.net #3306537)
bug reported by denisfr
2011-10-09 15:02:52 +02:00
Peter Hercek
eada1d62c7 mem_vsize and mem_res need to be 64 bit (sf.net #3366272)
if process allocated 4GiB or more of ram then {top mem_vsize} did not report correct number

Signed-off-by: Pavel Labath <pavelo@centrum.sk>
2011-10-02 19:34:02 +02:00
Pavel Labath
b3d96b3b34 Don't crash when using out-of-range cpu numbers (sf.net #3368243)
bug reported by Ormaaj
2011-10-02 19:16:29 +02:00
Pavel Labath
422cc24ba2 Link with -lbsd on GNU/kFreeBSD to find optreset (sf.net #3387121) 2011-10-01 23:25:29 +02:00
Pavel Labath
906dbb5b89 Remove zlib dependency
I'm not sure why was that even there, as we don't use zlib.
2011-10-01 22:57:17 +02:00
Pavel Labath
425b6df7c4 Fix quoting problem in configure.ac
since "not supported on foo" is sometimes assigned to want_bar variables, we need to quote them
properly when testing them.
2011-10-01 22:41:04 +02:00
Pavel Labath
d46eed65dc Revert "Fix short_units for below kilo values."
I revert this, because it breaks padding for numbers < 1000, which causes ugly text shifts when
numbers change from <1000 to >1000. If someone disagrees with this, we can talk about it in
 #conky. I asked before doing this, but noone seemed to care.

This "fixes" bug #3389641 on sf.net, reported by sakalisc.

This reverts commit c9cf08d9e9.
2011-09-18 19:19:23 +02:00
Pavel Labath
ccc50cef48 Use monotonic time when calculating the update interval (fixes sf.net #2970255)
when the system clock is moved backwards, the update interval would be calculated incorrectly. If
it was moved back far enough, conky would use 100% cpu. Conky now uses monotonic clock to prevent
this. If it turns out to be unsupported on some platform, an appropriate fallback can be added.

problem reported by norsetto
2011-09-17 13:07:16 +02:00
Pavel Labath
e6088bcfe2 Support imap passwords with strange characters (sf.net #3402448)
conky now sends the password using the length + string format, which should not need any quoting
of special characters. Hopefully, we won't find a server which does not support this encoding.

bug reported by Brent
2011-09-16 22:23:55 +02:00
skizzhg
9943ad2700 Explained that mixer requires OSS and added the device list. 2011-08-25 18:42:58 +02:00
Pavel Labath
03a56731ab Fix 'conky-1.8.1 does not build with curl-7.21.7' (sf.net #3383906)
In the new version of curl, types.h no longer exists. I just removed the offending include as
is seems to be unnecessary.

bug reported by billie80.
2011-08-01 22:36:25 +02:00
Pavel Labath
ab235b7ac6 Revert "$mixer: report more reasonable values for mono devices"
the user reports this didn't fix the problem (see sf.net #3131452)

This reverts commit 540f78f0bd.
2011-01-02 14:22:40 +01:00
Pavel Labath
540f78f0bd $mixer: report more reasonable values for mono devices 2011-01-01 11:38:08 +01:00
Tiago Vale
2f2480833f Added support for POWER_SUPPLY_POWER_NOW In Linux
apparently POWER_SUPPLY_CURRENT_NOW was deprecated and replaced by POWER_SUPPLY_POWER_NOW. In my
system, ever since kernel 2.6.36.1 battery lifetime showed "unknown" in conky. Check
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=532000.

Signed-off-by: Pavel Labath <pavelo@centrum.sk>
2010-12-30 16:59:29 +01:00
Nikos Ntarmos
0d6a37beee FreeBSD supports addr and if_running
Signed-off-by: Nikos Ntarmos <ntarmos@cs.uoi.gr>
Signed-off-by: Pavel Labath <pavelo@centrum.sk>
2010-12-09 19:27:22 +01:00
Nikos Ntarmos
4c0b1e936c xmms2 and audacious bars exist only under X
Signed-off-by: Nikos Ntarmos <ntarmos@cs.uoi.gr>
Signed-off-by: Pavel Labath <pavelo@centrum.sk>
2010-12-09 19:24:38 +01:00
Nikos Ntarmos
f607145f13 kvm_proc needs synchronized access
Signed-off-by: Nikos Ntarmos <ntarmos@cs.uoi.gr>
Signed-off-by: Pavel Labath <pavelo@centrum.sk>
2010-12-09 19:00:47 +01:00
Nikos Ntarmos
792da5a7db apcupsd and iostats work on FreeBSD
Signed-off-by: Nikos Ntarmos <ntarmos@cs.uoi.gr>
Signed-off-by: Pavel Labath <pavelo@centrum.sk>
2010-12-09 18:53:10 +01:00
Nikos Ntarmos
33565ef0d6 Build fixes for bmpx
Signed-off-by: Nikos Ntarmos <ntarmos@cs.uoi.gr>
Signed-off-by: Pavel Labath <pavelo@centrum.sk>
2010-12-07 19:11:26 +01:00
Nikos Ntarmos
da4f602694 fclose(3) instead of pclose(3) as the latter seems to leak file descriptors
Signed-off-by: Nikos Ntarmos <ntarmos@cs.uoi.gr>
Signed-off-by: Pavel Labath <pavelo@centrum.sk>
2010-12-05 21:08:20 +01:00
Brenden Matthews
5c555deb64 Fix for segfault in top_name stuff. 2010-10-19 17:36:29 -07:00
Brenden Matthews
c9bde0065e Bump rev. 2010-10-15 11:29:55 -07:00
Kevin Lyles
30295b672d Fixed foreground colors being semi-transparent
Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
2010-10-15 11:25:23 -07:00
Kevin Lyles
eb0a4cc418 Fixed gradients to actually use both end colors
Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
2010-10-15 11:23:56 -07:00
Dan McGee
f055cfefad Enable use of HTTP cache headers in curl plugin
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>
2010-10-14 16:59:54 -07:00
Brenden Matthews
8dd9b91bb2 Build fix for XMMS2.
This resolves bug 3085691, see:
https://sourceforge.net/tracker/index.php?func=detail&aid=3085691&group_id=143975&atid=757308
2010-10-14 16:51:53 -07:00
Brenden Matthews
b720047870 Bulid fix for nvidia support.
See http://bugs.gentoo.org/show_bug.cgi?id=339971 for details.
2010-10-06 11:49:27 -07:00
Brenden Matthews
0e2c45685b Bump rev. 2010-10-05 15:34:39 -07:00
Brenden Matthews
0b3fbed045 Bump for release. 2010-10-05 15:26:24 -07:00
Brenden Matthews
b9f5034c39 Fix indentation. 2010-10-05 13:25:32 -07:00
Brenden Matthews
45e74549f5 Fix warning. 2010-10-05 13:22:42 -07:00
Brenden Matthews
f679b4d22a Allow method to pass execgraph arguments containing spaces. 2010-10-05 12:26:52 -07:00
Ben Kibbey
52e86f4bf6 Abort curl transfers if they drop below 1000B/s for more than 60s.
Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
2010-10-05 12:09:48 -07:00
Brenden Matthews
519f1ea80d Correct docs. 2010-10-05 12:03:10 -07:00
Brenden Matthews
773cf770b7 Improve curl code. 2010-10-05 11:53:55 -07:00
Markus
173b5a0b7f Fix short_units for below kilo values.
Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
2010-10-05 11:29:39 -07:00
Brenden Matthews
0e5925e1cb When we have a failure in mail thread, sleep for a bit. 2010-09-09 10:53:39 -07:00
Brenden Matthews
cf4f3021f9 Improve failure handling in mail threads.
When we have a failure in the mail thread, lookup the hostname again in
case the failure is due odd to DNS changes, or some other madness.
2010-09-09 10:48:57 -07:00
Pavel Labath
3f7be35406 Fix segfault in ccurl_thread.c
curl_global_init() is not thread-safe, it must be called at the start of main()
2010-08-29 13:31:18 +02:00
Brenden Matthews
dadc49b09f Fix crash in mail stuff due to bad free(). 2010-08-26 10:32:27 -07:00
Pavel Labath
9fc26df1f6 fix compilation errors in previous commit 2010-08-24 22:30:32 +02:00
Pavel Labath
a4ac595240 Fix segfault in i8k (sf.net #3007167)
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.
2010-08-20 23:35:33 +02:00
Pavel Labath
841c0c962f fix typo 2010-08-16 16:42:05 +02:00
Pavel Labath
74392a5491 Use getaddrinfo instead of gethostbyname
Patches conky to use getaddrinfo instead of gethostbyname everywhere. gethostbyname is rather
flawed and doesn't support IPv6 properly.

Patch contributed by Pascal Bleser
2010-08-15 19:58:03 +02:00
Brenden Matthews
a25985f00b Build fix for IBM support when X is disabled.
See http://bugs.gentoo.org/show_bug.cgi?id=331171 for details.
2010-08-13 10:58:35 -07:00