Commit 57a2764eb56e371393e46ce97f1dbb9eaf8bfb60

nelisky 2012-04-02T21:51:01

Small tweaks to freq reporting

diff --git a/libztex.c b/libztex.c
index ee56bdd..e8f3219 100644
--- a/libztex.c
+++ b/libztex.c
@@ -231,7 +231,7 @@ int libztex_setFreq (struct libztex_device *ztex, uint16_t freq) {
     return cnt;
   }
   ztex->freqM = freq;
-  applog(LOG_WARNING, "%s: Frequency change to %d Mhz", ztex->repr, ztex->freqM1 * (ztex->freqM + 1));
+  applog(LOG_WARNING, "%s: Frequency change to %0.2f Mhz", ztex->repr, ztex->freqM1 * (ztex->freqM + 1));
 
   return 0;
 }
diff --git a/ztex.c b/ztex.c
index ea697db..52171e5 100644
--- a/ztex.c
+++ b/ztex.c
@@ -280,7 +280,7 @@ static void ztex_statline_before(char *buf, struct cgpu_info *cgpu)
 {
   if (cgpu->deven == DEV_ENABLED) {
     tailsprintf(buf, "%s | ", cgpu->device->snString);
-    tailsprintf(buf, "%dMhz | ", cgpu->device->freqM1 * (cgpu->device->freqM + 1));
+    tailsprintf(buf, "%0.2fMhz | ", cgpu->device->freqM1 * (cgpu->device->freqM + 1));
   }
 }