[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/ksysguard/ksysguardd [POSSIBLY UNSAFE]
From:       Tobias Koenig <tokoe () kde ! org>
Date:       2002-12-31 11:14:52
[Download RAW message or body]

CVS commit by tokoe: 


add new column type 'D' for ProcessList to allow localized number presentation


  M +2 -2      FreeBSD/ProcessList.c   1.13 [POSSIBLY UNSAFE: printf]
  M +2 -2      Irix/ProcessList.c   1.5 [POSSIBLY UNSAFE: printf]
  M +2 -2      Linux/ProcessList.c   1.44 [POSSIBLY UNSAFE: printf]
  M +2 -2      NetBSD/ProcessList.c   1.3 [POSSIBLY UNSAFE: printf]
  M +1 -0      Porting-HOWTO   1.7
  M +2 -2      Solaris/ProcessList.c   1.7 [POSSIBLY UNSAFE: printf]


--- kdebase/ksysguard/ksysguardd/Porting-HOWTO  #1.6:1.7
@@ -82,4 +82,5 @@
 
 d: integer value
+D: integer value that should be localized in the frontend
 f: floating point value
 s: string value

--- kdebase/ksysguard/ksysguardd/FreeBSD/ProcessList.c  #1.12:1.13
@@ -341,5 +341,5 @@ printProcessListInfo(const char* cmd)
 {
         fprintf(CurrentClient, \
"Name\tPID\tPPID\tUID\tGID\tStatus\tUser%%\tSystem%%\tNice\tVmSize\tVmRss\tLogin\tCommand\n");
                
-        fprintf(CurrentClient, "s\td\td\td\td\tS\tf\tf\td\td\td\ts\ts\n");
+        fprintf(CurrentClient, "s\td\td\td\td\tS\tf\tf\td\tD\tD\ts\ts\n");
 }
 

--- kdebase/ksysguard/ksysguardd/Irix/ProcessList.c  #1.4:1.5
@@ -321,5 +321,5 @@ void printProcessListInfo( const char *c
         fprintf(CurrentClient, "Name\tPID\tPPID\tGID\tStatus\tUser"
                 "\tSize\tResident\t%% CPU\tPriority\tCommand\n" );
-        fprintf(CurrentClient, "s\td\td\td\ts\ts\td\td\tf\td\ts\n" );
+        fprintf(CurrentClient, "s\td\td\td\ts\ts\tD\tD\tf\td\ts\n" );
 }
 

--- kdebase/ksysguard/ksysguardd/Linux/ProcessList.c  #1.43:1.44
@@ -442,5 +442,5 @@ printProcessListInfo(const char* cmd)
         fprintf(CurrentClient, \
"Name\tPID\tPPID\tUID\tGID\tStatus\tUser%%\tSystem%%\tNice\tVmSize"  \
                "\tVmRss\tLogin\tCommand\n");
-        fprintf(CurrentClient, "s\td\td\td\td\tS\tf\tf\td\td\td\ts\ts\n");
+        fprintf(CurrentClient, "s\td\td\td\td\tS\tf\tf\td\tD\tD\ts\ts\n");
 }
 

--- kdebase/ksysguard/ksysguardd/NetBSD/ProcessList.c  #1.2:1.3
@@ -309,5 +309,5 @@ printProcessListInfo(const char* cmd)
 {
         fprintf(CurrentClient, \
"Name\tPID\tPPID\tUID\tGID\tStatus\tUser%%\tSystem%%\tNice\tVmSize\tVmRss\tLogin\tCommand\n");
                
-        fprintf(CurrentClient, "s\td\td\td\td\tS\tf\tf\td\td\td\ts\ts\n");
+        fprintf(CurrentClient, "s\td\td\td\td\tS\tf\tf\td\tD\tD\ts\ts\n");
 }
 

--- kdebase/ksysguard/ksysguardd/Solaris/ProcessList.c  #1.6:1.7
@@ -289,5 +289,5 @@ void printProcessListInfo( const char *c
         fprintf(CurrentClient, "Name\tPID\tPPID\tGID\tStatus\tUser\tThreads"
                 "\tSize\tResident\t%% CPU\tPriority\tCommand\n" );
-        fprintf(CurrentClient, "s\td\td\td\ts\ts\td\td\td\tf\td\ts\n" );
+        fprintf(CurrentClient, "s\td\td\td\ts\ts\td\tD\tD\tf\td\ts\n" );
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic