aboutsummaryrefslogtreecommitdiffstats
path: root/scd4x
diff options
context:
space:
mode:
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});
}