Comments (3)
(overflow at a guess. Perhaps the issue is something else.)
from screenfetch-c.
This fixes:
diff --git a/src/plat/sun/detect.c b/src/plat/sun/detect.c
index bf6fb24..79196c4 100644
--- a/src/plat/sun/detect.c
+++ b/src/plat/sun/detect.c
@@ -186,7 +186,7 @@ void detect_mem(void)
{
long long total_mem = 0;
-
total_mem = sysconf(_SC_PHYS_PAGES) * sysconf(_SC_PAGE_SIZE);
-
total_mem = (long long)sysconf(_SC_PHYS_PAGES) * (long long)sysconf(_SC_PAGE_SIZE); total_mem /= MB;
from screenfetch-c.
Thanks for debugging this. I'll fix it in a bit.
from screenfetch-c.
Related Issues (20)
- Rasbpian issues. HOT 2
- detect_distro problems (and a bunch of Arch Linux problems) HOT 4
- Issue Installing on Debian HOT 3
- manjaro & integrated gpu HOT 7
- Development on OS X and Windows
- Some changes 3 HOT 1
- segmentation fault HOT 6
- build fails on OSX 10.10 HOT 2
- strange results in memory, disk usage, and gpu HOT 2
- user@host is misaligned HOT 2
- Failed to detect the Distro, WM. HOT 5
- Identify the boot loader HOT 11
- Manpage issue HOT 2
- Identify the package manager HOT 5
- MinGW compatibility HOT 2
- Desktop environment on Windows HOT 8
- Modern logo for Windows 8 and 10 HOT 7
- Don't throw errors HOT 2
- add CDE to DE list
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from screenfetch-c.