Last active
August 29, 2015 14:17
-
-
Save teknogeek0/4a881ec2853b6403a49a to your computer and use it in GitHub Desktop.
chef template issue?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in template: | |
relationship_cache_array_fraction=<%= (2000 / node['neo4j']['server']['jvm']['xmx'].to_i).to_f * 100 %> | |
in role: | |
"neo4j" : { | |
"server" : { | |
"jvm" : { | |
"xms" : "76800", | |
"xmx" : "76800", | |
... | |
I believe that the math should be (2000/76800) * 100, which = ~2.6(minus some digits) | |
I end up with in file: | |
relationship_cache_array_fraction=0.0 | |
Why is that? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
figured it out. need to do node['neo4j']['server']['jvm']['xmx'].to_f) and then im good.