Skip to content

Commit e060452

Browse files
committed
[spectro] add year to timestamp
Related to #1593
1 parent 7b5350e commit e060452

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/spectro_source.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include "base/math_util.hh"
4040
#include "config.h"
4141

42-
static constexpr auto TIME_COLUMN_WIDTH = 22;
42+
static constexpr auto TIME_COLUMN_WIDTH = 26;
4343
static constexpr auto UNUSABLE_WIDTH = TIME_COLUMN_WIDTH + 2;
4444
static constexpr auto MINIMUM_WIDTH = UNUSABLE_WIDTH + 20;
4545

@@ -373,7 +373,7 @@ spectrogram_source::text_value_for_line(textview_curses& tc,
373373
auto ri = row_time_opt.value();
374374

375375
gmtime_r(&ri.ri_time.tv_sec, &tm);
376-
strftime(tm_buffer, sizeof(tm_buffer), " %a %b %d %H:%M:%S", &tm);
376+
strftime(tm_buffer, sizeof(tm_buffer), " %a %b %d %H:%M:%S %Y", &tm);
377377

378378
value_out = tm_buffer;
379379
value_out.resize(TIME_COLUMN_WIDTH + s_row.sr_width, ' ');
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
 Min: 134   1-1   2-2   3+ Max: 78929
2-
Mon Jul 20 22:55:00 x    
3-
▲ 1 value in the range 134.00-1566.64
1+
 Min: 134   1-1   2-2   3+ Max: 78929
2+
Mon Jul 20 22:55:00 2009 x    
3+
▲ 1 value in the range 134.00-1679.00
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
 Min: 0   1-23   24-48   49+ Max: 291690
2-
Thu Nov 03 00:15:00                            
3-
▲ 80 values in the range 0.00-5303.45
4-
Thu Nov 03 00:20:00           
1+
 Min: 0   1-23   24-48   49+ Max: 291690
2+
Thu Nov 03 00:15:00 2011                           
3+
▲ 84 values in the range 0.00-5719.41
4+
Thu Nov 03 00:20:00 2011           

0 commit comments

Comments
 (0)