1
0
Fork 0

plugin_disk: fixed hdparm call

This commit is contained in:
Jaroslav Škarvada 2012-11-30 15:04:03 +01:00
parent fc97d2b279
commit a1bca54f42

View file

@ -178,7 +178,7 @@ class DiskPlugin(base.Plugin):
@command_set("apm", per_device=True)
def _set_apm(self, value, device):
tuned.utils.commands.execute(["hdparm", "-B", value, "/dev/" + device])
tuned.utils.commands.execute(["hdparm", "-B", str(value), "/dev/" + device])
@command_get("apm")
def _get_apm(self, device):
@ -193,7 +193,7 @@ class DiskPlugin(base.Plugin):
@command_set("spindown", per_device=True)
def _set_spindown(self, value, device):
tuned.utils.commands.execute(["hdparm", "-S", value, "/dev/" + device])
tuned.utils.commands.execute(["hdparm", "-S", str(value), "/dev/" + device])
@command_get("spindown")
def _get_spindown(self, device):