From 000c4dbc86437f54014c91f8c43fc23ea51852e4 Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Sat, 16 Jan 2021 17:51:04 +0100 Subject: [PATCH] Fix comments in code Signed-off-by: Sebastien GODARD --- sa.h | 2 +- sa_common.c | 6 ++---- sar.c | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/sa.h b/sa.h index 14626d8..afdaf03 100644 --- a/sa.h +++ b/sa.h @@ -1155,7 +1155,7 @@ struct report_format { __printf_funct_t (*f_statistics) (int *, int, struct activity * [], unsigned int []); /* * This function defines the timestamp part of the report. - * Used only with textual (XML-like) reports. + * Used only with textual (XML-like) reports, PCP archives and RAW output format. */ __tm_funct_t (*f_timestamp) (void *, int, char *, char *, unsigned long long, struct record_header *, struct file_header *, unsigned int); diff --git a/sa_common.c b/sa_common.c index a697ce4..f20c164 100644 --- a/sa_common.c +++ b/sa_common.c @@ -2870,10 +2870,8 @@ void replace_nonprintable_char(int ifd, char *comment) * * OUT: * @rectime Structure where timestamp for current record has been saved - * (in local time or in UTC depending on options used). - * @loctime If given, structure where timestamp for current record has - * been saved (expressed in local time). This field will be used - * for time comparison if options -s and/or -e have been used. + * (in local time, in UTC or in time of file's creator + * depending on options used). * * RETURNS: * 1 if an error was detected, or 0 otherwise. diff --git a/sar.c b/sar.c index 4dc6a8d..5138113 100644 --- a/sar.c +++ b/sar.c @@ -1142,7 +1142,7 @@ void read_stats_from_file(char from_file[]) from_file, &file_magic, UEOF_STOP); } else { - /* This was a COMMENT record: print it */ + /* This was a COMMENT record: Print it */ print_special_record(&record_hdr[curr], flags + S_F_LOCAL_TIME, &tm_start, &tm_end, R_COMMENT, ifd, &rectime, from_file, 0, -- 2.40.0