diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2021-05-10 19:56:34 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2021-05-10 19:56:34 +0200 |
commit | 871cd17451dd6450e0b8dba0f9ac38e1a422707c (patch) | |
tree | e6497513bd0a8eb47fa8cc4eee3f215052c49960 /scd4x | |
parent | 61b94411dabedfe9435b43a15625e7c328230a36 (diff) | |
download | hue-871cd17451dd6450e0b8dba0f9ac38e1a422707c.tar.gz |
chomp fix
Diffstat (limited to 'scd4x')
-rwxr-xr-x | scd4x | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -39,7 +39,8 @@ for (;;) { if (defined($mqtt)) { $mqtt->retain( $topic => $values->{$key} ); } else { - my $ts = chomp(POSIX::ctime(time())); + my $ts = POSIX::ctime(time()); + chomp($ts); printf("[%s] %-20s: %s\n", $ts, $topic, $values->{$key}); } |