Brenden Matthews
36faf216df
Fix incorrect param order.
2021-01-23 19:17:40 -06:00
Brenden Matthews
05321f375a
Run clang-format.
2021-01-23 18:41:22 -06:00
humanoid2050
351a7a8d22
made fan data available for indices higher than the gpu card count, and added some protection against bad requests
2021-01-23 18:40:51 -06:00
Brenden Matthews
b679b54508
Run clang-format.
2021-01-23 18:39:35 -06:00
Mithil Poojary
0a4eb8fda5
Replace vulnerable functions with safer alternatives
2021-01-23 18:39:01 -06:00
Mithil Poojary
6bda01266b
Confirm pointer is not null and use sizeof object instead of struct
2021-01-23 18:39:01 -06:00
Mithil Poojary
ddb70b4ba9
Confirm that index is greater than 0
2021-01-23 18:39:01 -06:00
Mithil Poojary
b97eff4dbe
Fix order of freeing memory
2021-01-23 18:39:01 -06:00
Mithil Poojary
87a31ba039
Avoid passing null pointer to strncpy
2021-01-23 18:39:01 -06:00
Mithil Poojary
a9ecfbaae5
Free memory after use
2021-01-23 18:39:01 -06:00
Mithil Poojary
e9fcca035b
Avoid out of bound memory access
...
Value of idx is -1, if find_match_op returns -1.
Later idx is used as index for accessing element of expr_dup
causing our of bound memory access.
2021-01-23 18:39:01 -06:00
Mithil Poojary
366c384bde
Remove redundant break statement
2021-01-23 18:39:01 -06:00
Brenden Matthews
3c9c4074b3
Prefer functions over macros.
2021-01-23 18:30:57 -06:00
Brenden Matthews
283129e283
Apply clang-format.
2021-01-23 18:19:04 -06:00
isaac
36d685eb88
refactor and unit test
2021-01-23 18:00:53 -06:00
isaac
56920fde12
add build option
2021-01-23 18:00:53 -06:00
isaac
d25e0a72f4
added hsv gradient
2021-01-23 18:00:53 -06:00
freddii
b62e115830
fixed wrong spelled words
2021-01-23 17:59:07 -06:00
Carl A Joslin
92df0cf550
Correct width of formated data rates.
2021-01-23 17:54:18 -06:00
François Revol
3355740d23
llua: expose cpu_count
...
This avoids having to hardcode the CPU count, and crashing with scripts
with too many cpus prepared (typically rings).
2021-01-15 09:59:09 -06:00
Guido Falsi
389d24b4e0
Disable including dev/wi/if_wavelan_ieee.h as it has ben removed from FreeBSD source code in head
...
It looks like the code actually using this include is already included in an #if 0 block and disabled, so I'm disabling this include unconditionally.
2021-01-15 09:58:25 -06:00
François Revol
8769c57dd9
Get rid of last "not "
2021-01-14 10:12:14 -06:00
François Revol
11431da1a5
fix typo
2021-01-14 10:12:14 -06:00
François Revol
7de6ec0669
Fix build with older microhttpd
2021-01-14 10:11:36 -06:00
Brenden Matthews
16be0e1571
Build fix for libmicrohttpd.
2020-10-22 13:02:00 -04:00
Brenden Matthews
1c599a2752
Add missing mpd_comment variable.
2020-07-27 08:01:52 -04:00
Paweł Bielecki
b2a5a47a28
Print uid in top if user doesnt exist.
2020-03-07 10:54:16 -05:00
Andrew Deason
5651cf1529
Remove length limit on curl URLs
...
Currently, the ${curl} directive only uses the first 127 characters in
the given URL, discarding the rest. Change the parsing in
curl_parse_arg to dynamically allocate the URL string instead,
allowing ${curl} to use URLs of any length.
2020-02-05 18:06:26 -05:00
AlexApps99
9bee2eec39
Made various misc.cc functions more concise
2020-01-31 19:11:44 -05:00
AlexApps99
8dc04f3902
Renamed to rstrip to allow for future lstrip or even strip (rstrip+lstrip) command
2020-01-24 19:27:31 -05:00
AlexApps99
b8d3515f19
Added strip command
...
Strips trailing whitespace from string
2020-01-24 19:27:31 -05:00
AlexApps99
703e9a6add
Removed null-termination from print_xcases
...
The strings are already null-terminated
2020-01-24 19:27:31 -05:00
AlexApps99
1924081173
Added lowercase config to match uppercase
2020-01-24 19:27:31 -05:00
AlexApps99
435d05dc6e
Optimised and corrected print_startcase
2020-01-21 13:04:13 -05:00
AlexApps99
49638c6c19
Ran clang-format
2020-01-21 13:04:13 -05:00
AlexApps99
f7c15b027a
Renamed start_case to startcase, lower_case to lowercase and upper_case to uppercase
2020-01-21 13:04:13 -05:00
AlexApps99
12bced05fe
I ran clang-format instead of check-clang-format
...
Formatting has been fixed now
2020-01-21 13:04:13 -05:00
AlexApps99
1bb8754dce
Added lower_case and upper_case commands
2020-01-21 13:04:13 -05:00
helmat
6ad788b78d
Fix if_mounted & if_running variables for FreeBSD
2020-01-08 13:21:00 -05:00
Kevin Velghe
2a7226d893
Fix segfault on pulseaudio tunnel sinks
2019-12-30 11:43:28 -05:00
Joseph Benden
11695b076a
linux: update statistics based on newer kernel interface ( #859 )
...
On Linux, use the newer field presented by the kernel for calculating
the amount of memory in use. This was introduced in commit
34e431b0ae398fc54ea69ff85ec700722c9da773 to the Linux kernel.
Signed-off-by: Joseph Benden <joe@benden.us>
2019-10-20 19:01:05 -05:00
ndwarshuis
8978b13ff9
properly format PIDs longer than 5 digits
2019-10-19 12:10:56 -04:00
Joseph Benden
dae65af726
add SI unit to graph limits
...
Signed-off-by: Joseph Benden <joe@benden.us>
2019-10-17 13:28:49 -04:00
Thomas Ingvarsson
9517ab1e6c
Add nvidia driverversion variable ( #889 )
2019-09-19 00:50:20 -05:00
Shark-Teeth
0d449029ea
Fix negative RAM usage ( #878 )
...
This seems to be causing some issues with clobbering memory values, and
since there is callback functionality already working, this seems
unnecessary.
* Make all calculations local to function
I moved from making the assignments and calculations of certain memory
values to doing the calculations on local variables and assigning them
at the end of the function for update_meminfo().
This is to keep the info.memX variables from having 'intermediary'
values that may give wrong values to other functions if the structure is
read from while the function is currently executing.
As a matter of keeping the variables consistent across function calls, I
removed the zeroing out of certain info struct variables so that if they
are read from, they'll still report a sane value. Since the only change
to the value a direct assignment at the end of the function, they
shouldn't need zeroing out in the first place.
2019-08-27 12:03:41 -05:00
屑鉄さらい;Scrap Trawler
c6b9d2edb5
Removed no_buffers check completely from common.cc
...
There's not a single instance of using info.bufmem in any other source
file aside from linux.cc. If there was any plan to use this check (and
info.bufmem) with any other source file, the check should be made in
that specific source file instead.
2019-08-12 17:53:54 -04:00
屑鉄さらい;Scrap Trawler
3b752693bd
Fix for the issue I made ( #860 )
2019-08-12 17:53:54 -04:00
Haochen Tong
d467a79fdb
Fix heap use-after-free with setlocale
...
In glibc the return value of setlocale() is allocated in static storage,
which may be invalidated by subsequent calls.
2019-07-23 11:06:00 -04:00
Travis Yaeger
d1a3c0eaa3
Refactor update_net_stats
...
Clean up
2019-07-23 11:05:21 -04:00
Travis Yaeger
b177dbc4b2
Clean up
2019-07-23 11:05:21 -04:00