nixos-module/collectd: don't invoke `hostname` in dhcpcount.rb

This commit is contained in:
Astro 2021-04-12 23:36:41 +02:00
parent 1a8b4811f7
commit 7e776b2dbf
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ require 'date'
INTERVAL = 10
TIMEOUT = ARGV[0].to_i
hostname = `hostname`.strip
hostname = IO::readlines("/proc/sys/kernel/hostname").join.strip
STDOUT.sync = true
loop do