mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-util/ninja: remove unused patch(es)
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/11274 Signed-off-by: Aaron Bauman <bman@gentoo.org>
This commit is contained in:
committed by
Aaron Bauman
parent
78c19d6b04
commit
13cdef9301
@@ -1,18 +0,0 @@
|
||||
diff --git a/src/util.cc b/src/util.cc
|
||||
index e31fd1f..1caa1ce 100644
|
||||
--- a/src/util.cc
|
||||
+++ b/src/util.cc
|
||||
@@ -585,6 +585,13 @@ double GetLoadAverage() {
|
||||
// Calculation taken from comment in libperfstats.h
|
||||
return double(cpu_stats.loadavg[0]) / double(1 << SBITS);
|
||||
}
|
||||
+#elif defined(__UCLIBC__)
|
||||
+double GetLoadAverage() {
|
||||
+ struct sysinfo si;
|
||||
+ if (sysinfo(&si) != 0)
|
||||
+ return -0.0f;
|
||||
+ return 1.0 / (1 << SI_LOAD_SHIFT) * si.loads[0];
|
||||
+}
|
||||
#else
|
||||
double GetLoadAverage() {
|
||||
double loadavg[3] = { 0.0f, 0.0f, 0.0f };
|
||||
Reference in New Issue
Block a user