]> granicus.if.org Git - sysstat/commitdiff
Merge branch 'msekletar-korean-timestamp'
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 2 Oct 2016 16:26:19 +0000 (18:26 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 2 Oct 2016 16:26:19 +0000 (18:26 +0200)
sa.h
sar.c

diff --git a/sa.h b/sa.h
index 7b57e7f8b86645a76a43527c5efeaa41b097593a..f76ff66aec81ed9f99204342330e5063112c4874 100644 (file)
--- a/sa.h
+++ b/sa.h
 #define BITMAP_SIZE(m) ((((m) + 1) / 8) + 1)
 
 #define UTSNAME_LEN    65
-#define TIMESTAMP_LEN  16
+#define TIMESTAMP_LEN  64
 #define HEADER_LINE_LEN        512
 
 /*
diff --git a/sar.c b/sar.c
index 68985843e8d87a01784baa4e96492b58d0554329..9c4e7e2f195a2219727dd027ea3eab0f28e0abe7 100644 (file)
--- a/sar.c
+++ b/sar.c
@@ -449,14 +449,14 @@ int write_stats(int curr, int read_from_file, long *cnt, int use_tm_start,
                                           &rectime, NULL))
                return 0;
        set_record_timestamp_string(flags, &record_hdr[!curr],
-                                   NULL, timestamp[!curr], 16, &rectime);
+                                   NULL, timestamp[!curr], TIMESTAMP_LEN, &rectime);
 
        /* Get then set current timestamp */
        if (sa_get_record_timestamp_struct(flags + S_F_LOCAL_TIME, &record_hdr[curr],
                                           &rectime, NULL))
                return 0;
        set_record_timestamp_string(flags, &record_hdr[curr],
-                                   NULL, timestamp[curr], 16, &rectime);
+                                   NULL, timestamp[curr], TIMESTAMP_LEN, &rectime);
 
        /* Check if we are beginning a new day */
        if (use_tm_start && record_hdr[!curr].ust_time &&