su8
bd98860640
upspeed/f downspeed/f: Be able to use ${gw_iface} as argument ( #571 )
2018-08-06 17:48:07 -04:00
su8
7bca0ca881
Fix issues #439 , #303 ( #545 )
...
* Fix issues https://github.com/brndnmtthws/conky/issues/439 , https://github.com/brndnmtthws/conky/issues/303
* core.cc: Add missing header file
* core.cc: Check if we build for x11 and add the locks functions
* read_tcpip.cc: Fix for https://github.com/brndnmtthws/conky/issues/306
* read_tcpip.cc: Missing string format specifier for "snprintf()"
* read_tcpip.cc: Wrong signed int format specifier for "snprintf()"
* Missing many string format specifiers to "snprintf()"
2018-08-02 11:15:16 -04:00
Brenden Matthews
87a0718ca0
More bug fixes from sonar. ( #500 )
2018-05-13 13:50:46 -04:00
su8
8dbb623255
Refactor mysql.cc ( #493 )
...
* Refactor mysql.cc
* Comparison of array temp not equal to a null pointer
* Switch and compare to C NULL instead std::nullptr_t to avoid compile error
* Use parentheses around addrs
* Remove parentheses around addrs
* Rebase
2018-05-13 12:25:21 -04:00
Brenden Matthews
e91b91d85a
Apply a bunch of code fixes from sonarcloud. ( #492 )
2018-05-13 09:58:03 -04:00
Brenden Matthews
4b92556fca
Build improvements: clang-tidy, sonar, Dockerfile. ( #488 )
2018-05-12 19:26:31 -04:00
Brenden Matthews
eebc8c653b
Add formatting/static analysis ( #486 )
...
* Reform source with clang-format.
Rules applied with:
$ find . -iname *.h -o -iname *.cc | xargs clang-format \
-style=file -i -fallback-style=google
* Add clang-format and analyze to build.
Based on the excellent work at: https://github.com/ttroy50/cmake-examples
* Clean up CMake stuff on macOS.
* Remove vim/emacs modelines.
* Update copyright dates.
* Build fixes.
* Build fixes.
* Build fixes.
* Build fixes.
* Build fixes.
* Build fixes.
2018-05-12 12:03:00 -04:00
Barben360
1410bac6aa
Fixed crash caused by temporary virtual net interfaces ( #479 )
...
* Fixed crash caused by temporary virtual net interfaces
* Restored original identation
2018-04-26 07:27:21 -04:00
François Revol
ac56f205fb
Haiku port phase 1 ( #433 )
...
* cmake: Add Haiku as a supported platform
* move mixer.cc to platform-specific as Haiku doesn't use OSS
* Add haiku.h with some stubs
* Use haiku.h
* Add some Haiku stubs
* Some Haiku network workarounds
It does not define SUN_LEN, provide a default.
It doesn't name the union in struct ifreq, use ifr_addr directly.
It seems Linux also declares it so it should work without change.
We can always define it for other platforms lacking it (add a cmake test ?).
Haiku does not have IFF_RUNNING, IFF_LINK seems close in semantics, so use it.
* Haiku: Minimal implementation of update_meminfo & get_top_info
* Haiku: implement update_cpu_usage
2018-01-19 11:36:40 -05:00
Jan Senolt
b814aafc6e
Solaris support ( #445 )
...
* Basic Solaris support
* Fixed indentation & minor improvements
* support for diskio
2018-01-19 09:00:42 -05:00
Brenden Matthews
2fab2d3820
Merge pull request #185 from mxmlnkn/issue-128
...
Fix BUILD_MATH flag not working, partial #128
2015-12-11 12:56:58 -08:00
mxmlnkn
a85ffd5d0d
logscale not working was caused by using MATH instead of BUILD_MATH
2015-12-11 01:39:59 +01:00
mxmlnkn
d8f75860b2
Fix for initial spike on program start plus documentation as much as needed to implement that fix
...
Also some end of line white spaces were automatically removed by SciTE.
2015-12-10 21:46:44 +01:00
Maxime Villard
622bf0cd7e
Assorted fixes found by valgrind
...
== common.cc ==
'result' can be uninitialized.
== conky.cc ==
strcpy()'s overlap: undefined behaviour. memmove()'s one is
defined.
== eve.cc ==
Some simplifications, and there are two leaks:
1. 'mySkill' could be leaked. So, let's make 'skill' point to it instead
of strdup()'ing the buffer.
2. 'output' could be leaked at l.390.
== freebsd.cc ==
Leak of 'freq_sysctl'.
== net_stat.cc ==
free() already null-checks, so we don't need to do it again.
== proc.cc ==
Leak.
Signed-off-by: Pavel Labath <pavelo@centrum.sk>
2012-12-26 23:22:34 +01:00
Brenden Matthews
ddef05d4eb
Update version, copyright.
2012-05-03 16:34:44 -07:00
Nikolas Garofil
59f79105bd
Show "No Address" instead of "::" when there is no address
2012-01-09 11:20:53 +01:00
Nikolas Garofil
cb544bd1f7
Check that there is no writing outside the string
2011-02-13 00:10:20 +01:00
Nikolas Garofil
723255f142
Use inet_ntop(), thanks to pavelo for telling me about this
2011-02-12 17:18:33 +01:00
Nikolas Garofil
18ce365d16
change reading args of $v6addrs and add docs
2011-02-11 15:43:01 +01:00
Nikolas Garofil
2754fab78d
Support for scope in $v6addrs
2011-02-11 13:05:00 +01:00
Nikolas Garofil
997dcc87d9
fix build without ipv6 support
2011-02-11 00:27:12 +01:00
Nikolas Garofil
b548f476cc
Support for -n in $v6addrs
2011-02-10 23:27:14 +01:00
Nikolas Garofil
5a5e8f80b1
Support for short-version ipv6-addresses
2011-02-10 16:01:16 +01:00
Nikolas Garofil
6287b22a3d
Add $v6addrs to increase IPv6 support
...
This is only the beginning of the ipv6 support,
This var isn't documented and only works on Linux.
It should also be patched to show the addresses in compressed format
Some other vars should also be added to see things like netmask, scope, routes, ...
2011-02-09 18:49:52 +01:00
Pavel Labath
ef2b39a97f
Make text_buffer_size a lua setting
2010-08-29 23:50:32 +02:00
Pavel Labath
0085402d08
Make if_up_strictness a lua setting
2010-08-25 19:40:24 +02:00
Nikolas Garofil
99fc975780
Add support for $wireless_freq
2010-06-07 10:50:02 +02:00
Nikolas Garofil
6ccde5e7e7
Add support for $wireless_channel (based on a patch by Timothy Ball)
2010-06-07 09:54:25 +02:00
Nikolas Garofil
a32d9e41a4
Bugfix: memory and thread-deleting problems
...
For example the following config had a problem:
TEXT
$i8k_cpu_temp
I could fix it shorter, but then valgrind would still show memleaks
2010-05-05 18:46:04 +02:00
Nikolas Garofil
6092d063c9
Use free_and_zero in [m-o]*.cc where appropriate
2010-02-24 02:14:20 +01:00
Nikolas Garofil
d184efb418
When using without argument, make sure that it shows the essid of the first device that has one instead of using the default network device (because most of the times this will be a non-wireless device)
2010-02-21 15:12:38 +01:00
Pavel Labath
0f3a56ccbe
An attempt at making wifi work
...
Someone who has iwlib should really test this.
2010-01-11 01:13:42 +01:00
Brenden Matthews
7e78f036f0
Use consistent naming for build option macros.
...
Probably have broken some build features with this commit.
2010-01-06 18:39:44 -08:00
Brenden Matthews
620e9876a4
C++ conversions WIP.
...
Currently stuck on an issue with g++ and using '%lli' with printf/scanf.
2010-01-04 19:21:12 -08:00