~ubuntu-branches/ubuntu/wily/sysstat/wily

« back to all changes in this revision

Viewing changes to pidstat.c

  • Committer: Package Import Robot
  • Author(s): Robert Luberda
  • Date: 2013-06-13 22:27:39 UTC
  • mfrom: (1.4.3)
  • Revision ID: package-import@ubuntu.com-20130613222739-k73hvrwurt5phlan
Tags: 10.1.6-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
#include "pidstat.h"
36
36
#include "common.h"
37
37
#include "rd_stats.h"
 
38
#include "count.h"
38
39
 
39
40
#ifdef USE_NLS
40
41
#include <locale.h>
2110
2111
                        }
2111
2112
                }
2112
2113
                
 
2114
                /* Option used individually. See below for grouped option */
2113
2115
                else if (!strcmp(argv[opt], "-U")) {
2114
2116
                        /* Display username instead of UID */
2115
2117
                        pidflag |= P_D_USERNAME;
2167
2169
                                        pidflag |= P_D_TID;
2168
2170
                                        break;
2169
2171
 
 
2172
                                case 'U':
 
2173
                                        /* When option is grouped, it cannot take an arg */
 
2174
                                        pidflag |= P_D_USERNAME;
 
2175
                                        break;
 
2176
                                        
2170
2177
                                case 'u':
2171
2178
                                        /* Display CPU usage */
2172
2179
                                        actflag |= P_A_CPU;