aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/gnunet-service-testbed_cpustatus.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-31 13:03:48 +0100
committerChristian Grothoff <christian@grothoff.org>2019-10-31 13:03:48 +0100
commit7e3cf5f461eb4fbb7581672bf0835da07c378136 (patch)
treebdc3874b7894242b095b892f1ed3e81a4d4f06c0 /src/testbed/gnunet-service-testbed_cpustatus.c
parent01b480d6d026e0c537dc284a7e7df2c0320a3528 (diff)
downloadgnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.tar.gz
gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.zip
tighten formatting rules
Diffstat (limited to 'src/testbed/gnunet-service-testbed_cpustatus.c')
-rw-r--r--src/testbed/gnunet-service-testbed_cpustatus.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testbed/gnunet-service-testbed_cpustatus.c b/src/testbed/gnunet-service-testbed_cpustatus.c
index ae6450176..f38b9aee6 100644
--- a/src/testbed/gnunet-service-testbed_cpustatus.c
+++ b/src/testbed/gnunet-service-testbed_cpustatus.c
@@ -118,6 +118,8 @@ initMachCpuStats ()
118 (vm_size_t) (cpu_msg_count * sizeof(*cpu_load))); 118 (vm_size_t) (cpu_msg_count * sizeof(*cpu_load)));
119 return GNUNET_OK; 119 return GNUNET_OK;
120} 120}
121
122
121#endif 123#endif
122 124
123/** 125/**
@@ -464,6 +466,7 @@ updateAgedLoad ()
464 } 466 }
465} 467}
466 468
469
467/** 470/**
468 * Get the load of the CPU relative to what is allowed. 471 * Get the load of the CPU relative to what is allowed.
469 * @return the CPU load as a percentage of allowed 472 * @return the CPU load as a percentage of allowed
@@ -489,6 +492,7 @@ disk_get_load ()
489 return (int) agedIOLoad; 492 return (int) agedIOLoad;
490} 493}
491 494
495
492/** 496/**
493 * Get the percentage of memory used 497 * Get the percentage of memory used
494 * 498 *
@@ -531,6 +535,8 @@ get_nproc ()
531 closedir (dir); 535 closedir (dir);
532 return nproc; 536 return nproc;
533} 537}
538
539
534#endif 540#endif
535 541
536 542
@@ -654,4 +660,5 @@ GST_stats_destroy ()
654 bw = NULL; 660 bw = NULL;
655} 661}
656 662
663
657/* end of cpustatus.c */ 664/* end of cpustatus.c */