git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'mainstream'
[sliver-openvswitch.git]
/
vswitchd
/
system-stats.c
diff --git
a/vswitchd/system-stats.c
b/vswitchd/system-stats.c
index
2960b87
..
1d9cb78
100644
(file)
--- a/
vswitchd/system-stats.c
+++ b/
vswitchd/system-stats.c
@@
-59,7
+59,7
@@
VLOG_DEFINE_THIS_MODULE(system_stats);
static void
get_cpu_cores(struct smap *stats)
{
- long int n_cores =
sysconf(_SC_NPROCESSORS_ONLN
);
+ long int n_cores =
count_cpu_cores(
);
if (n_cores > 0) {
smap_add_format(stats, "cpu", "%ld", n_cores);
}