59 lines
2.2 KiB
Diff
59 lines
2.2 KiB
Diff
--- vmstat.c
|
|
+++ vmstat.c 2012-06-01 13:41:09.844010232 +0000
|
|
@@ -179,9 +179,9 @@ static void new_header(void)
|
|
/* Translation Hint: Translating folloging header & fields
|
|
* that follow (marked with max x chars) might not work,
|
|
* unless manual page is translated as well. */
|
|
- printf(_("procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----\n"));
|
|
+ printf(_("procs -----------memory---------- ---swap-- -----io---- -system-- -----cpu------\n"));
|
|
printf
|
|
- ("%2s %2s %6s %6s %6s %6s %4s %4s %5s %5s %4s %4s %2s %2s %2s %2s\n",
|
|
+ ("%2s %2s %6s %6s %6s %6s %4s %4s %5s %5s %4s %4s %2s %2s %2s %2s %2s\n",
|
|
/* Translation Hint: max 2 chars */
|
|
_("r"),
|
|
/* Translation Hint: max 2 chars */
|
|
@@ -217,7 +217,9 @@ static void new_header(void)
|
|
/* Translation Hint: max 2 chars */
|
|
_("id"),
|
|
/* Translation Hint: max 2 chars */
|
|
- _("wa"));
|
|
+ _("wa"),
|
|
+ /* Translation Hint: max 2 chars */
|
|
+ _("st"));
|
|
}
|
|
|
|
static unsigned long unitConvert(unsigned long size)
|
|
@@ -230,7 +232,7 @@ static unsigned long unitConvert(unsigne
|
|
static void new_format(void)
|
|
{
|
|
const char format[] =
|
|
- "%2u %2u %6lu %6lu %6lu %6lu %4u %4u %5u %5u %4u %4u %2u %2u %2u %2u\n";
|
|
+ "%2u %2u %6lu %6lu %6lu %6lu %4u %4u %5u %5u %4u %4u %2u %2u %2u %2u %2u\n";
|
|
unsigned int tog = 0; /* toggle switch for cleaner code */
|
|
unsigned int i;
|
|
unsigned int hz = Hertz;
|
|
@@ -273,8 +275,8 @@ static void new_format(void)
|
|
(unsigned)( (100*duse + divo2) / Div ),
|
|
(unsigned)( (100*dsys + divo2) / Div ),
|
|
(unsigned)( (100*didl + divo2) / Div ),
|
|
- (unsigned)( (100*diow + divo2) / Div )/*,
|
|
- (unsigned)( (100*dstl + divo2) / Div ) */
|
|
+ (unsigned)( (100*diow + divo2) / Div ),
|
|
+ (unsigned)( (100*dstl + divo2) / Div )
|
|
);
|
|
|
|
/* main loop */
|
|
@@ -338,9 +342,9 @@ static void new_format(void)
|
|
/* id */
|
|
(unsigned)( (100*didl+divo2)/Div ),
|
|
/* wa */
|
|
- (unsigned)( (100*diow+divo2)/Div )/*,
|
|
- / * st * /
|
|
- (unsigned)( (100*dstl+divo2)/Div ) */
|
|
+ (unsigned)( (100*diow+divo2)/Div ),
|
|
+ /* st */
|
|
+ (unsigned)( (100*dstl+divo2)/Div )
|
|
);
|
|
}
|
|
}
|