<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slstatus/components/ram.c, branch master</title>
<subtitle>Status monitor for window managers that use WM_NAME or stdin to fill the status bar</subtitle>
<id>https://git.ikboikov.net/slstatus/atom?h=master</id>
<link rel='self' href='https://git.ikboikov.net/slstatus/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/'/>
<updated>2024-01-13T18:52:01Z</updated>
<entry>
<title>My initial changes</title>
<updated>2024-01-13T18:52:01Z</updated>
<author>
<name>ivan-boikov</name>
<email>ik.boikov.public@protonmail.com</email>
</author>
<published>2024-01-13T18:52:01Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=8b8363eaa2633c8a7392521416f45549ff10c164'/>
<id>urn:sha1:8b8363eaa2633c8a7392521416f45549ff10c164</id>
<content type='text'>
</content>
</entry>
<entry>
<title>radical re-formatting 3/3: Error checks</title>
<updated>2022-10-27T23:03:46Z</updated>
<author>
<name>drkhsh</name>
<email>me@drkhsh.at</email>
</author>
<published>2022-10-27T22:21:02Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=cce2e5ecb05cdf68831fbf44c5ab90f4e16364b3'/>
<id>urn:sha1:cce2e5ecb05cdf68831fbf44c5ab90f4e16364b3</id>
<content type='text'>
Check for `&lt; 0` instead of `== -1`.

Fixes coding style. Formatting commits suck, incoherent coding style
sucks more.
https://suckless.org/coding_style/
</content>
</entry>
<entry>
<title>radical re-formatting 2/3: Fix blocks</title>
<updated>2022-10-27T23:03:38Z</updated>
<author>
<name>drkhsh</name>
<email>me@drkhsh.at</email>
</author>
<published>2022-10-27T22:51:34Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=3251e911878b78b0aad8fc09c782f8d81c878f75'/>
<id>urn:sha1:3251e911878b78b0aad8fc09c782f8d81c878f75</id>
<content type='text'>
Fixes coding style. Formatting commits suck, incoherent coding style
sucks more.
https://suckless.org/coding_style/
</content>
</entry>
<entry>
<title>radical re-formatting 0/3: Alphabetic headers</title>
<updated>2022-10-27T23:03:20Z</updated>
<author>
<name>drkhsh</name>
<email>me@drkhsh.at</email>
</author>
<published>2022-10-27T21:18:30Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=0696635bcbad06770cce7d5a4c9e8e4d76868307'/>
<id>urn:sha1:0696635bcbad06770cce7d5a4c9e8e4d76868307</id>
<content type='text'>
Except stated otherwise in comment.

Fixes coding style. Formatting commits suck, incoherent coding style
sucks more.
https://suckless.org/coding_style/
</content>
</entry>
<entry>
<title>ram: Refactor on OpenBSD</title>
<updated>2022-10-27T23:03:20Z</updated>
<author>
<name>drkhsh</name>
<email>me@drkhsh.at</email>
</author>
<published>2022-10-27T22:13:12Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=826a5dc86202624b00ad2a51d781758a7f7ca1fa'/>
<id>urn:sha1:826a5dc86202624b00ad2a51d781758a7f7ca1fa</id>
<content type='text'>
Fixes up overly complicated lines, by splitting up logic
</content>
</entry>
<entry>
<title>ram: Refactor Linux perc/used</title>
<updated>2022-10-27T23:03:20Z</updated>
<author>
<name>drkhsh</name>
<email>me@drkhsh.at</email>
</author>
<published>2022-10-27T22:11:15Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=d7ea986299db33e3bce7a8be742c1ecf32e9a76e'/>
<id>urn:sha1:d7ea986299db33e3bce7a8be742c1ecf32e9a76e</id>
<content type='text'>
Fixes up overly complicated line, by splitting up logic
</content>
</entry>
<entry>
<title>do not rely on obsolete feature</title>
<updated>2022-10-26T21:32:43Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-10-26T20:16:05Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=0c2b3e5b5c499b1de566fd4bef49c5e6b5254d1a'/>
<id>urn:sha1:0c2b3e5b5c499b1de566fd4bef49c5e6b5254d1a</id>
<content type='text'>
function prototype with unspecified argument is obsolete since c99.

additionally some of these function which don't take any argument were
being called with a `const char *` arg, which is UB.

fix both these issues by declararing ALL the components to accept a
`const char *`, and name the arg "unused" if it's meant to be ignored.
</content>
</entry>
<entry>
<title>components/*.c: include slstatus.h</title>
<updated>2022-10-26T21:32:07Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-10-26T20:14:53Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=28ef0b242c32e8ae8b4df2b4b380e30bf581130f'/>
<id>urn:sha1:28ef0b242c32e8ae8b4df2b4b380e30bf581130f</id>
<content type='text'>
this gives the compiler a chance to check weather the prototype and
definiton matches or not, which would catch issues like 3c47701.
</content>
</entry>
<entry>
<title>Fix RAM component on FreeBSD</title>
<updated>2022-10-26T19:24:11Z</updated>
<author>
<name>michaelbuch12@gmail.com</name>
<email>michaelbuch12@gmail.com</email>
</author>
<published>2021-01-01T16:04:36Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=77bfb76a971ed8d114fc12db70d8bfeef923510e'/>
<id>urn:sha1:77bfb76a971ed8d114fc12db70d8bfeef923510e</id>
<content type='text'>
The current implementation uses the wrong type for
given sysctl calls leading to overflow and incorrectly
reported RAM usage. The fix is to use 'unsigned int'
which is what FreeBSD expects.
</content>
</entry>
<entry>
<title>Add ram and swap components on FreeBSD</title>
<updated>2019-02-16T15:58:34Z</updated>
<author>
<name>Michael Buch</name>
<email>michaelbuch12@gmail.com</email>
</author>
<published>2019-02-16T01:26:44Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=a1ac203d16c379d7fc05765545af2977a7a3584d'/>
<id>urn:sha1:a1ac203d16c379d7fc05765545af2977a7a3584d</id>
<content type='text'>
</content>
</entry>
</feed>
