/[smeserver]/rpms/e-smith-quota/sme8/e-smith-quota-2.2.0-QuotaAsNumber.patch
ViewVC logotype

Diff of /rpms/e-smith-quota/sme8/e-smith-quota-2.2.0-QuotaAsNumber.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by wellsi, Sat Nov 27 10:23:51 2010 UTC Revision 1.2 by wellsi, Sat Nov 27 20:48:00 2010 UTC
# Line 70  diff -ruN e-smith-quota-2.2.0.old/root/u Line 70  diff -ruN e-smith-quota-2.2.0.old/root/u
70  +   my $exponent = 1; # Entries with no suffix are assumed to be in megabytes.  +   my $exponent = 1; # Entries with no suffix are assumed to be in megabytes.
71  +   if (defined ($2))  +   if (defined ($2))
72  +   {  +   {
73  +       $exponent = index("KMGT",$2);  +       $exponent = index("kmgt",lc($2));
74  +   }    +   }  
75  +   $softlim = ($value * 1024 ** $exponent);  +   $softlim = ($value * 1024 ** $exponent);
76    
# Line 102  diff -ruN e-smith-quota-2.2.0.old/root/u Line 102  diff -ruN e-smith-quota-2.2.0.old/root/u
102  +   my $exponent = 1; # Entries with no suffix are assumed to be in megabytes.  +   my $exponent = 1; # Entries with no suffix are assumed to be in megabytes.
103  +   if (defined ($2))  +   if (defined ($2))
104  +   {  +   {
105  +       $exponent = index("KMGT",$2);  +       $exponent = index("kmgt",lc($2));
106  +   }    +   }  
107  +   $hardlim = ($value * 1024 ** $exponent);  +   $hardlim = ($value * 1024 ** $exponent);
108    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed