Skip to content

Commit

Permalink
Patch users.c for FreeBSD < 9 where libstatgrab 0.90 codepath is used
Browse files Browse the repository at this point in the history
  • Loading branch information
kev009 committed Jun 11, 2014
1 parent 6c0d9d6 commit 3460237
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions files/patch-src__users.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--- ./src/users.c.orig 2014-06-02 22:12:33.650261000 -0700
+++ ./src/users.c 2014-06-11 00:10:39.000000000 -0700
@@ -101,12 +101,13 @@

#elif HAVE_LIBSTATGRAB
sg_user_stats *us;
+ size_t num_entries;

- us = sg_get_user_stats ();
+ us = sg_get_user_stats (&num_entries);
if (us == NULL)
return (-1);

- users_submit ((gauge_t) us->num_entries);
+ users_submit ((gauge_t) num_entries);
/* #endif HAVE_LIBSTATGRAB */

#else

0 comments on commit 3460237

Please sign in to comment.