progname);
fprintf(stderr, _("Options are:\n"
- "[ -C ] [ -d | -j | -p | -x ] [ -H ] [ -h ] [ -T ] [ -t ] [ -V ]\n"
+ "[ -C ] [ -d | -j | -p | -x ] [ -H ] [ -h ] [ -T ] [ -U ] [ -V ]\n"
"[ -P { <cpu> [,...] | ALL } ] [ -s [ <hh:mm:ss> ] ] [ -e [ <hh:mm:ss> ] ]\n"
"[ -- <sar_options> ]\n"));
exit(1);
flags &= ~S_F_HORIZONTALLY;
}
if (!ACCEPT_TRUE_TIME(fmt[f_position]->options)) {
- /* Remove option -t */
+ /* Remove option -T */
flags &= ~S_F_TRUE_TIME;
}
if (!ACCEPT_SEC_EPOCH(fmt[f_position]->options)) {
- /* Remove option -T */
+ /* Remove option -U */
flags &= ~S_F_SEC_EPOCH;
}
}
* time, based on current record's "number of seconds since the epoch" saved
* in file.
* The resulting timestamp is expressed in UTC or in local time, depending
- * on whether option -t has been used or not.
+ * on whether option -T has been used or not.
*
* IN:
* @curr Index in array for current sample statistics.
* @rectime Structure where timestamp (expressed in local time or in UTC
- * depending on whether option -t has been used or not) can be
+ * depending on whether option -T has been used or not) can be
* saved for current record.
* @loctime Structure where timestamp (expressed in local time) can be
* saved for current record.
}
if (!PRINT_TRUE_TIME(flags)) {
- /* Option -t not used: Display timestamp in UTC */
+ /* Option -T not used: Display timestamp in UTC */
ltm = gmtime((const time_t *) &record_hdr[curr].ust_time);
}
/*
***************************************************************************
* Set current record's timestamp strings (date and time). This timestamp is
- * expressed in UTC or in local time, depending on whether option -t has
+ * expressed in UTC or in local time, depending on whether option -T has
* been used or not.
*
* IN:
* @cur_time String where timestamp's time will be saved.
* @len Maximum length of timestamp strings.
* @rectime Structure with current timestamp (expressed in local time or
- * in UTC depending on whether option -t has been used or not)
+ * in UTC depending on whether option -T has been used or not)
* that should be broken down in date and time strings.
*
* OUT:
* @cur_date Timestamp's date string.
* @cur_time Timestamp's time string. May contain the number of seconds
- * since the epoch (01-01-1970) if option -T has been used.
+ * since the epoch (01-01-1970) if option -U has been used.
***************************************************************************
*/
void set_record_timestamp_string(int curr, char *cur_date, char *cur_time, int len,
}
else {
/*
- * If PRINT_TRUE_TIME(flags) is true (ie. option -t has been used) then
+ * If PRINT_TRUE_TIME(flags) is true (ie. option -T has been used) then
* cur_time is expressed in local time. Else it is expressed in UTC.
*/
strftime(cur_date, len, "%Y-%m-%d", rectime);
* @use_tm_end Set to TRUE if option -e has been used.
* @tab Number of tabulations to print.
* @rectime Structure where timestamp (expressed in local time
- * or in UTC depending on whether option -t has been
+ * or in UTC depending on whether option -T has been
* used or not) can be saved for current record.
* @loctime Structure where timestamp (expressed in local time)
* can be saved for current record.
* @tab Number of tabulations to print.
* @ifd Input file descriptor.
* @rectime Structure where timestamp (expressed in local time
- * or in UTC depending on whether option -t has been
+ * or in UTC depending on whether option -T has been
* used or not) can be saved for current record.
* @loctime Structure where timestamp (expressed in local time)
* can be saved for current record.
* @act_id Activities to display.
* @cpu_nr Number of processors for current activity data file.
* @rectime Structure where timestamp (expressed in local time
- * or in UTC depending on whether option -t has been
+ * or in UTC depending on whether option -T has been
* used or not) can be saved for current record.
* @loctime Structure where timestamp (expressed in local time)
* can be saved for current record.
* @tab Number of tabulations to print.
* @cpu_nr Number of processors.
* @rectime Structure where timestamp (expressed in local time
- * or in UTC depending on whether option -t has been
+ * or in UTC depending on whether option -T has been
* used or not) can be saved for current record.
* @loctime Structure where timestamp (expressed in local time)
* can be saved for current record.
* @rtype Record type (RESTART or COMMENT).
* @ifd Input file descriptor.
* @rectime Structure where timestamp (expressed in local time
- * or in UTC depending on whether option -t has been
+ * or in UTC depending on whether option -T has been
* used or not) can be saved for current record.
* @loctime Structure where timestamp (expressed in local time)
* can be saved for current record.
* @file_actlst List of (known or unknown) activities in file.
* @cpu_nr Number of processors for current activity data file.
* @rectime Structure where timestamp (expressed in local time or in UTC
- * depending on whether option -t has been used or not) can be
+ * depending on whether option -T has been used or not) can be
* saved for current record.
* @loctime Structure where timestamp (expressed in local time) can be
* saved for current record.
* @file_magic System activity file magic header.
* @cpu_nr Number of processors for current activity data file.
* @rectime Structure where timestamp (expressed in local time or in UTC
- * depending on whether option -t has been used or not) can be
+ * depending on whether option -T has been used or not) can be
* saved for current record.
* @loctime Structure where timestamp (expressed in local time) can be
* saved for current record.
* @file_actlst List of (known or unknown) activities in file.
* @cpu_nr Number of processors for current activity data file.
* @rectime Structure where timestamp (expressed in local time or in UTC
- * depending on whether option -t has been used or not) can be
+ * depending on whether option -T has been used or not) can be
* saved for current record.
* @loctime Structure where timestamp (expressed in local time) can be
* saved for current record.
format = F_PPC_OUTPUT;
break;
- case 't':
+ case 'T':
flags |= S_F_TRUE_TIME;
break;
- case 'T':
+ case 'U':
flags |= S_F_SEC_EPOCH;
break;