-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[systeminfo] memory#availableHeap reports wrong values #13709
Comments
@UrsusS Did you try removing the state description? The value should show in Bytes by default. I tested on a RPi 4 with Java OpenJDK 11.0.16 and it works correctly for me. |
The item was defined as: version: 3.4.0.M4 |
Does the value in Bytes correspond to the available heap? I know it is a high value. This code has not changed. The only thing I can see is that there have been quite a few changes to units in core. |
Hard to say if these values correspond to the available heap. The value isn't constant, it is highly fluctuating. |
I tested once more, and the issue is not with the binding, but with the unit conversion from B to MB. This is outside of the binding. I defined a Number:DataAmount item linked to this channel. If you use %0.f %unit% as a state description, it correctly shows the available heap in bytes. You can use the used heap % channel and see it go up/down with the available heap. But replacing that with %0.f MB does indeed show 0 MB as a result. So the unit conversion does not work. |
The issue should be fixed with OH 3.4 milestone 6. can you confirm @UrsusS ? |
@UrsusS : please reopen in case it is not fixed. |
OH 3.4.0.M4
After having used the UI configuration for the systeminfo thing, the reported value for available heap is much to low.
Before with M3 (and textual config), the values have been around 50 - 120 MB, now it is ~ 2.1E-16 MB.
This happens on my both machines where I've upgraded and changed the kind of configuration.
The text was updated successfully, but these errors were encountered: