Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML output returns memory related values in kilo-bytes and not bytes #143

Open
j-ed opened this issue Feb 20, 2019 · 0 comments
Open

XML output returns memory related values in kilo-bytes and not bytes #143

j-ed opened this issue Feb 20, 2019 · 0 comments

Comments

@j-ed
Copy link
Contributor

j-ed commented Feb 20, 2019

Expected behavior

If you use the external monitor API, all values should be returned in bytes.

Current behavior

If you use the external monitor API, all memory related values are returned in kilo-bytes instead
of bytes, because the output of /proc/meminfo is used to get the information, which is by default
returning values in kB. Compared to the freespace information this inconsistent.

# cat /proc/meminfo | grep "^Mem"
MemTotal:        8183664 kB
MemFree:          339332 kB
MemAvailable:    5807060 kB

XML output:

20190220_nc_mem_stats

Environment

Server Configuration

OS: Linux 3.16.62
Web server: Apache2 2.4.37
Database: MariaDB 10.2.21
PHP version: 7.2.14
Nextcloud version: 15.0.4
Serverinfo app version: 1.5.0

Client Configuration

Browser: Mozilla Firefox 65.0.1
Operating system: Windows 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants