Exemple #1
0
 private double CalculatePercentUsage(UsageDetail u)
 {
     return(u.total_usage > .0 ? ((double)(u.string_usage + u.file_usage) / u.total_usage * 100) : 0);
 }
Exemple #2
0
 public AESUsage(UsageDetail u)
 {
     title   = "ZZ";
     percent = CalculatePercentUsage(u);
 }