mkR
[trinked.git] / main.c
diff --git a/main.c b/main.c
index 7b2ab8f..f5532cd 100644 (file)
--- a/main.c
+++ b/main.c
@@ -75,7 +75,7 @@ restart:
                goto restart;
        }
 
-       while(42 && stopRequest == false) {
+       while(42) {
                if (trinketGetCumDose(&curDose) != ERR_OK) {
                        fprintf(stderr, "trinketGetCumDose fails\n");
                        trinketClose();
@@ -85,7 +85,7 @@ restart:
 
                if (prevDose >= 0.0) {
                        double  counts = curDose - prevDose;
-                       double  radlevel = coefficient * counts * 3600.0 / (double)period;
+                       double  radlevel = 1e6 * coefficient * counts * 3600.0 / (double)period;
                        FILE    *fh = stdout;
                        bool    successOpen = true;