]> andersk Git - moira.git/commitdiff
x*.5 replaced with x/2;
authorjnrees <jnrees>
Tue, 6 Mar 1990 15:59:08 +0000 (15:59 +0000)
committerjnrees <jnrees>
Tue, 6 Mar 1990 15:59:08 +0000 (15:59 +0000)
x*1.2 with (x*6)/5;
This avoids linking in the floating-point library.

gen/setquota.c

index 61b737308b9ed79fcf5b1ddb03291023098fe677..b5a05950ac746a2045f386b863b7838fcf9f1ad1 100644 (file)
  * quota system.
  *
  *      $Log$
- *      Revision 1.4  1990-01-27 19:48:05  jnrees
- *      Grows quotas file if necessary
- *      Allows setting quota for a range of uid's.
+ *      Revision 1.5  1990-03-06 15:59:08  jnrees
+ *      x*.5 replaced with x/2;
+ *      x*1.2 with (x*6)/5;
+ *      This avoids linking in the floating-point library.
  *
+ * Revision 1.4  90/01/27  19:48:05  jnrees
+ * Grows quotas file if necessary
+ * Allows setting quota for a range of uid's.
+ * 
  * Revision 1.3  88/10/06  10:46:08  raeburn
  * (mar) Don't expire timers on users currently over quota.
  *
@@ -123,9 +128,9 @@ quota is in 1KB units\n");
          }
 
          db.dqb_bsoftlimit = soft_quota;
-         db.dqb_bhardlimit = db.dqb_bsoftlimit * 1.2;
-         db.dqb_fsoftlimit = soft_quota * .5;
-         db.dqb_fhardlimit = db.dqb_fsoftlimit * 1.2;
+         db.dqb_bhardlimit = (db.dqb_bsoftlimit * 6) / 5;
+         db.dqb_fsoftlimit = soft_quota / 2;
+         db.dqb_fhardlimit = (db.dqb_fsoftlimit * 6) / 5;
          db.dqb_btimelimit = odb.dqb_btimelimit;
          db.dqb_ftimelimit = odb.dqb_ftimelimit;
 
This page took 0.042359 seconds and 5 git commands to generate.