[monitoring-plugins] Change all to comments to old comment style

RincewindsHat git at monitoring-plugins.org
Sun Oct 3 13:40:11 CEST 2021


 Module: monitoring-plugins
 Branch: master
 Commit: d2f2da175eda5a06291a974d971968a1241d7935
 Author: RincewindsHat <12514511+RincewindsHat at users.noreply.github.com>
   Date: Sat Oct  2 12:47:50 2021 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=d2f2da1

Change all to comments to old comment style

---

 plugins/check_swap.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/plugins/check_swap.c b/plugins/check_swap.c
index 6dec9b2..4d124a3 100644
--- a/plugins/check_swap.c
+++ b/plugins/check_swap.c
@@ -466,7 +466,7 @@ process_arguments (int argc, char **argv)
 				length = strlen(optarg);
 
 				if (optarg[length - 1] == '%') {
-					// It's percentage!
+					/* It's percentage */
 					warn.is_percentage = true;
 					optarg[length - 1] = '\0';
 					if (is_uint64(optarg, &warn.value)) {
@@ -477,7 +477,7 @@ process_arguments (int argc, char **argv)
 						}
 					}
 				} else {
-					// It's Bytes
+					/* It's Bytes */
 					warn.is_percentage = false;
 					if (is_uint64(optarg, &warn.value)) {
 						break;
@@ -497,7 +497,7 @@ process_arguments (int argc, char **argv)
 				length = strlen(optarg);
 
 				if (optarg[length - 1] == '%') {
-					// It's percentage!
+					/* It's percentage */
 					crit.is_percentage = true;
 					optarg[length - 1] = '\0';
 					if (is_uint64(optarg, &crit.value)) {
@@ -508,6 +508,7 @@ process_arguments (int argc, char **argv)
 						}
 					}
 				} else {
+					/* It's Bytes */
 					crit.is_percentage = false;
 					if (is_uint64(optarg, &crit.value)) {
 						break;



More information about the Commits mailing list