mirror of
https://github.com/tstack/lnav
synced 2024-11-15 18:13:10 +00:00
[lss] fix format string for time offset
This commit is contained in:
parent
0658b9ef57
commit
73a4df61e3
@ -58,7 +58,7 @@
|
|||||||
#include "ghc/filesystem.hpp"
|
#include "ghc/filesystem.hpp"
|
||||||
|
|
||||||
#if SIZEOF_OFF_T == 8
|
#if SIZEOF_OFF_T == 8
|
||||||
#define FORMAT_OFF_T "%qd"
|
#define FORMAT_OFF_T "%lld"
|
||||||
#elif SIZEOF_OFF_T == 4
|
#elif SIZEOF_OFF_T == 4
|
||||||
#define FORMAT_OFF_T "%ld"
|
#define FORMAT_OFF_T "%ld"
|
||||||
#else
|
#else
|
||||||
|
@ -830,11 +830,11 @@ size_t duration2str(int64_t millis, std::string &value_out)
|
|||||||
const char *format;
|
const char *format;
|
||||||
const char *symbol;
|
const char *symbol;
|
||||||
} intervals[] = {
|
} intervals[] = {
|
||||||
{ 1000, "%03qd%s", "" },
|
{ 1000, "%03lld%s", "" },
|
||||||
{ 60, "%qd%s", "s" },
|
{ 60, "%lld%s", "s" },
|
||||||
{ 60, "%qd%s", "m" },
|
{ 60, "%lld%s", "m" },
|
||||||
{ 24, "%qd%s", "h" },
|
{ 24, "%lld%s", "h" },
|
||||||
{ 0, "%qd%s", "d" },
|
{ 0, "%lld%s", "d" },
|
||||||
};
|
};
|
||||||
|
|
||||||
struct rel_interval *curr_interval = intervals;
|
struct rel_interval *curr_interval = intervals;
|
||||||
|
Loading…
Reference in New Issue
Block a user