aboutsummaryrefslogtreecommitdiffstats
path: root/scd4x
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2021-05-10 19:55:47 +0200
committerGerd Hoffmann <kraxel@redhat.com>2021-05-10 19:55:47 +0200
commit61b94411dabedfe9435b43a15625e7c328230a36 (patch)
tree1553a4d5ae73b5922cda62683d06fe069a27ea17 /scd4x
parentf3ebd73d4225cf0111b2702213d0b7c7c095d74e (diff)
downloadhue-61b94411dabedfe9435b43a15625e7c328230a36.tar.gz
ts fix
Diffstat (limited to 'scd4x')
-rwxr-xr-xscd4x4
1 files changed, 2 insertions, 2 deletions
diff --git a/scd4x b/scd4x
index 0e4576c..0a781a5 100755
--- a/scd4x
+++ b/scd4x
@@ -39,9 +39,9 @@ for (;;) {
if (defined($mqtt)) {
$mqtt->retain( $topic => $values->{$key} );
} else {
+ my $ts = chomp(POSIX::ctime(time()));
printf("[%s] %-20s: %s\n",
- POSIX::ctime(time()),
- $topic, $values->{$key});
+ $ts, $topic, $values->{$key});
}
}
$pvalues = $values;