diff options
author | Costa Tsaousis <costa@tsaousis.gr> | 2018-09-14 15:09:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-14 15:09:26 +0300 |
commit | 7a9d0d3074b3d070e866e62857cab93e0c33099c (patch) | |
tree | 149ebdb5909561b022565b334fd6defe3bc44c1a /src | |
parent | 46f715f57c37a749615f5a1298c9741a6ba55738 (diff) |
time-duration badges should show "undefined" instead of "never" when the value is not a valid number; fixes #4029 (#4193)
Diffstat (limited to 'src')
-rw-r--r-- | src/web_buffer_svg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/web_buffer_svg.c b/src/web_buffer_svg.c index 8b80d66b92..20c41851b2 100644 --- a/src/web_buffer_svg.c +++ b/src/web_buffer_svg.c @@ -509,7 +509,7 @@ inline char *format_value_and_unit(char *value_string, size_t value_string_len, return value_string; } else if(isnan(value) || isinf(value)) { - snprintfz(value_string, value_string_len, "%s", "never"); + snprintfz(value_string, value_string_len, "%s", "undefined"); return value_string; } @@ -539,7 +539,7 @@ inline char *format_value_and_unit(char *value_string, size_t value_string_len, return value_string; } else if(isnan(value) || isinf(value)) { - snprintfz(value_string, value_string_len, "%s", "never"); + snprintfz(value_string, value_string_len, "%s", "undefined"); return value_string; } @@ -566,7 +566,7 @@ inline char *format_value_and_unit(char *value_string, size_t value_string_len, return value_string; } else if(isnan(value) || isinf(value)) { - snprintfz(value_string, value_string_len, "%s", "never"); + snprintfz(value_string, value_string_len, "%s", "undefined"); return value_string; } |