Skip to content

Conversation

@RincewindsHat
Copy link
Member

This PR is the result of refactoring check_swap, which was started because the ifdef hell in there was annoying me.

The results are the following:

  • The actual fetching of swap data is now outsourced to a separate translation unit (swap.c) in a separate directory (check_swap.d) although the naming and the positions are up for discussion
  • A first little unit was introduced/started with plugins/tests/test_check_swap.c (and the corresponding curl test program)
  • The main in check_swap now only deals with computing the result and formatting the output
  • Updated copyright
  • Code was formatted with clang-format at least once to achieve better readability

Currently this is probably not in a proper state to be merged, more tests would be appreciated and the structure of the files and so on is open for discussion.

@RincewindsHat RincewindsHat requested a review from a team January 4, 2024 01:18
@waja waja added the check_swap label Feb 3, 2024
@RincewindsHat
Copy link
Member Author

@sni would you like to take a look at this?

@sni
Copy link
Contributor

sni commented Mar 15, 2024

yeah, when i have 3 weeks of vacation ;)

@RincewindsHat
Copy link
Member Author

Can I sweet talk your company into giving you that? :-P

@RincewindsHat RincewindsHat marked this pull request as ready for review December 29, 2024 20:21
@RincewindsHat RincewindsHat merged commit 3968049 into monitoring-plugins:master Dec 29, 2024
7 checks passed
@RincewindsHat RincewindsHat deleted the check_swap_again branch December 29, 2024 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants