]> granicus.if.org Git - sysstat/commitdiff
Fix comments in code
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 16 Jan 2021 16:51:04 +0000 (17:51 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 16 Jan 2021 16:51:04 +0000 (17:51 +0100)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
sa.h
sa_common.c
sar.c

diff --git a/sa.h b/sa.h
index 14626d86f298f46e6895716db8edecb72089ad3d..afdaf03ddb50f5816eeeeb9e97c019cec167b9d6 100644 (file)
--- 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);
index a697ce4eb43a08f70b7ba0109ac5811885770bb1..f20c164744a0b3c351d81f7760aa811816f48ce3 100644 (file)
@@ -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 4dc6a8d858b9ed66394762c5aeb4cfe85c556bd3..5138113981c79f6c087624805da94a7958a43d68 100644 (file)
--- 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,