Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 831472 Details for
Bug 1035795
tuna throwing valueerror when not specified priority
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fix
0001-CLI-fix-traceback-where-enter-p-policy-without-prio-.patch (text/plain), 973 bytes, created by
Petr Oros
on 2013-12-02 08:52:09 UTC
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Petr Oros
Created:
2013-12-02 08:52:09 UTC
Size:
973 bytes
patch
obsolete
>From 497db32793a2dc34f23247d75d888df291a32c3b Mon Sep 17 00:00:00 2001 >From: Petr Oros <poros@redhat.com> >Date: Fri, 29 Nov 2013 12:01:14 +0100 >Subject: [PATCH 1/1] CLI: fix traceback where enter -p policy without prio > >Signed-off-by: Petr Oros <poros@redhat.com> >--- > tuna/tuna.py | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > >diff --git a/tuna/tuna.py b/tuna/tuna.py >index 6dfe740..4e7a0f2 100755 >--- a/tuna/tuna.py >+++ b/tuna/tuna.py >@@ -490,10 +490,14 @@ def thread_set_priority(tid, policy, rtprio): > > def threads_set_priority(tids, parm, affect_children = False): > parms = parm.split(":") >+ rtprio = -1 > policy = None >- if len(parms) != 1: >+ if parms[0].upper() in ["OTHER", "BATCH", "IDLE", "FIFO", "RR", "IDLE", "RESET_ON_FORK"]: > policy = schedutils.schedfromstr("SCHED_%s" % parms[0].upper()) >- rtprio = int(parms[1]) >+ if len(parms) > 1: >+ rtprio = int(parms[1]) >+ else: >+ rtprio = 0 > else: > rtprio = int(parms[0]) > >-- >1.8.4.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1035795
: 831472