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

Wrong conversion #3

Open
duylong opened this issue Apr 27, 2015 · 0 comments
Open

Wrong conversion #3

duylong opened this issue Apr 27, 2015 · 0 comments

Comments

@duylong
Copy link

duylong commented Apr 27, 2015

Hi,

Bytes to GBytes is not 1048576 but 1073741824.

        try:
            heap_used   = es_stats['nodes'][myid]['jvm']['mem']['heap_used']
            heap_max    = es_node ['nodes'][myid]['jvm']['mem']['heap_max']
        except KeyError:
            heap_used   = str(round(es_stats['nodes'][myid]['jvm']['mem']['heap_used_in_bytes']/1048576.0,2))+'gb'
            heap_max    = str(round(es_node ['nodes'][myid]['jvm']['mem']['heap_max_in_bytes']/1048576.0,2))+'gb'

Cordialy,

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

No branches or pull requests

1 participant