nsd: remove configuration
[sourcephile-nix.git] / pkgs / tools / system / smartmontools / smartctl-tbw / default.nix
index efd795bd1f7d06dc72a900e695d5af214be39d38..d8b51072e9eb95c5e5b2eb4a122611a2a50633a4 100644 (file)
@@ -22,11 +22,11 @@ writeShellScriptBin "smartctl-tbw" ''
   { awk '
     $0 ~ /Power_On_Hours/ { poh=$10; printf "%s / %d hours / %d days / %.2f years\n",  $2, $10, $10 / 24, $10 / 24 / 365.25 }
     $0 ~ /Total_LBAs_Written/ {
-        lbas=$10;
-        bytes=$10 * 512;
-        mb= bytes / 1024^2;
-        gb= bytes / 1024^3;
-        tb= bytes / 1024^4;
+        lbas = $10;
+        bytes = $10 * 512;
+        mb = bytes / 1024^2;
+        gb = bytes / 1024^3;
+        tb = bytes / 1024^4;
         printf "%s / %s  / %d mb / %.1f gb / %.3f tb\n", $2, $10, mb, gb, tb
         printf "mean writes per hour:  / %.2f",  mb/poh
     }