Update ratio directive.