From 42fcaf9f287e1ebe204ba3ed10d46c4fedb70536 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Wed, 2 Jan 2019 15:09:19 -0800 Subject: [PATCH] add load --- bin/cn-mining-stats | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/cn-mining-stats b/bin/cn-mining-stats index 2d2ff7c..2cb08ae 100644 --- a/bin/cn-mining-stats +++ b/bin/cn-mining-stats @@ -10,6 +10,8 @@ my $json = get("http://127.0.0.1:$PORT/mining_status"); my $mining = $j->decode($json); my $speed = $mining->{speed}; my $threads = $mining->{threads_count}; +my $uptime = qx{cat /proc/loadavg}; +my ($load) = split / /, $uptime; chomp(my $hostname= qx{hostname}); -print "$hostname: BLUR $speed H/s, $threads threads\n"; +print "$hostname: BLUR $speed H/s, $threads threads, load $load\n"; #print $json;