Skip to content

Commit

Permalink
bump to nvidia-3 solves wrong FROM and cosmetic numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
abuisine committed Dec 12, 2017
1 parent c8c4f94 commit 1c85817
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.nvidia
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM abuisine/nvidia:375.66-ubuntu1704-4
FROM abuisine/nvidia:375.66-7

ENV CLAYMORE_VERSION="10.0"

LABEL maintainer="Alexandre Buisine <[email protected]>" version="${CLAYMORE_VERSION}-nvidia-2"
LABEL maintainer="Alexandre Buisine <[email protected]>" version="${CLAYMORE_VERSION}-nvidia-3"

RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update \
&& apt-get install -yqq --no-install-recommends \
Expand Down
4 changes: 2 additions & 2 deletions resources/Claymore.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def collect(self):

#GAUGES
metric = GaugeMetricFamily(self.prefix + 'eth_hashrate_total_mhs', self.prefix_s + "ETH total hashrate", labels=self.labels.keys())
metric.add_metric(self.labels.values(), float(eth_hashrate_total_mhs))
metric.add_metric(self.labels.values(), float(eth_hashrate_total_mhs) / 1000)
yield metric
gpu_temperature_c, fan_speed_percent = stat[self.CLAYMORE_API_RESULT_TEMP_FAN].split(';', 2)
metric = GaugeMetricFamily(self.prefix + 'gpu_temperature_c', self.prefix_s + "GPU temperature", labels=self.labels.keys())
Expand All @@ -116,7 +116,7 @@ def collect(self):
metric.add_metric(self.labels.values(), float(fan_speed_percent))
yield metric

log.info('collected hashrate:%.1fMHs accepted:%d rejected:%d', float(eth_hashrate_total_mhs), int(eth_shares_accepted), int(eth_shares_rejected))
log.info('collected hashrate:%.3fMHs accepted:%d rejected:%d', float(eth_hashrate_total_mhs), int(eth_shares_accepted), int(eth_shares_rejected))

except Exception as e:
log.warning(e, exc_info=True)

0 comments on commit 1c85817

Please sign in to comment.