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 580765 Details for
Bug 817020
numad: variable '-i' can't work fine
[?]
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]
fixed '-i' option
0001-numad-fixed-i-option.patch (text/plain), 1.52 KB, created by
Zhouping Liu
on 2012-04-27 13:01:42 UTC
(
hide
)
Description:
fixed '-i' option
Filename:
MIME Type:
Creator:
Zhouping Liu
Created:
2012-04-27 13:01:42 UTC
Size:
1.52 KB
patch
obsolete
>From db99f62a6fb366846ba4640d5de720aedb5e1b74 Mon Sep 17 00:00:00 2001 >From: Zhouping Liu <zliu@redhat.com> >Date: Fri, 27 Apr 2012 20:51:38 +0800 >Subject: [PATCH] numad: fixed '-i' option > >'-i' option show the interval of updating date, >which contains min_interval and max_interval parameter, >without the patch, sometimes min_interval > max_interval >the patch fixed it. > >Signed-off-by: Zhouping Liu <zliu@redhat.com> >--- > numad.8 | 2 +- > numad.c | 6 ++++++ > 2 files changed, 7 insertions(+), 1 deletion(-) > >diff --git a/numad.8 b/numad.8 >index 8706204..cda25f5 100644 >--- a/numad.8 >+++ b/numad.8 >@@ -7,7 +7,7 @@ numad \- A user\-level daemon that provides advice and managment for optimum use > numad [\fI\-dhvV\fP] > .br > .LP >-numad [\fI\-i max_interval[:min_interval]\fP] >+numad [\fI\-i min_interval[:max_interval]\fP] > .br > .LP > numad [\fI\-l log_level\fP] >diff --git a/numad.c b/numad.c >index 7e66a68..e1b71cd 100644 >--- a/numad.c >+++ b/numad.c >@@ -1740,6 +1740,12 @@ void *set_dynamic_options(void *arg) { > recv_msg(&msg); > switch (msg.body.cmd) { > case 'i': { >+ if (msg.body.arg1 > msg.body.arg2) { >+ int tmp; >+ tmp = msg.body.arg1; >+ msg.body.arg1 = msg.body.arg2; >+ msg.body.arg2 = tmp; >+ } > numad_log(LOG_NOTICE, "Changing interval to %d:%d\n", msg.body.arg1, msg.body.arg2); > min_interval = msg.body.arg1; > max_interval = msg.body.arg2; >-- >1.7.10 >
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 817020
: 580765