Skip to content

Client template io-cache cache size option generator does not work. #2

@tomoconnor

Description

@tomoconnor

Great module, apart from this! I've included a fix of some sort
Line 40:
option cache-size grep 'MemTotal' /proc/meminfo | awk '{print $2 * 0.2 / 1024}' | cut -f1 -d.MB
This does not actually work, and just squirts the grep line as-is, into the config file. It works, but has no effect.
Replace it with the pure erb, however, and it has the correct effect.:
option cache-size <%= (memorysize.to_i*0.2).floor %>MB

HTH

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions