From ebcf7d21847d13b6b534abca4211f8b337cc9f1a Mon Sep 17 00:00:00 2001 From: Jan Vcelak Date: Tue, 27 Nov 2012 17:34:20 +0100 Subject: [PATCH] norefs, disk: fix static readahead setting --- tuned/plugins/plugin_disk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuned/plugins/plugin_disk.py b/tuned/plugins/plugin_disk.py index 389aa3f..b7363ca 100644 --- a/tuned/plugins/plugin_disk.py +++ b/tuned/plugins/plugin_disk.py @@ -203,7 +203,7 @@ class DiskPlugin(base.Plugin): @command_set("readahead", per_device=True) def _set_readahead(self, value, device): sys_file = self._readahead_file(device) - tuned.utils.commands.write_to_file(sys_file, "%d" % value) + tuned.utils.commands.write_to_file(sys_file, "%d" % int(value)) @command_get("readahead") def _get_readahead(self, device):