aboutsummaryrefslogtreecommitdiffstats
path: root/scd4x
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2021-05-10 19:56:34 +0200
committerGerd Hoffmann <kraxel@redhat.com>2021-05-10 19:56:34 +0200
commit871cd17451dd6450e0b8dba0f9ac38e1a422707c (patch)
treee6497513bd0a8eb47fa8cc4eee3f215052c49960 /scd4x
parent61b94411dabedfe9435b43a15625e7c328230a36 (diff)
downloadhue-871cd17451dd6450e0b8dba0f9ac38e1a422707c.tar.gz
chomp fix
Diffstat (limited to 'scd4x')
-rwxr-xr-xscd4x3
1 files changed, 2 insertions, 1 deletions
diff --git a/scd4x b/scd4x
index 0a781a5..9755fb3 100755
--- a/scd4x
+++ b/scd4x
@@ -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});
}