/[bubblemon]/bubblemon/src/gnome1-meter.c
ViewVC logotype

Diff of /bubblemon/src/gnome1-meter.c

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

revision 1.10 by walles, Mon Oct 14 20:24:07 2002 UTC revision 1.11 by walles, Mon Oct 21 18:43:48 2002 UTC
# Line 145  static int getCpuLoad(int currentCpu, in Line 145  static int getCpuLoad(int currentCpu, in
145    }    }
146    
147    // We sometimes get > 100% load    // We sometimes get > 100% load
148    if (loadPercentage == 101)    if (loadPercentage > 100)
149    {    {
150      loadPercentage = 100;      loadPercentage = 100;
151    }    }
152    g_assert((loadPercentage >= 0) && (loadPercentage <= 100));    
153      // We should never get < 0% load
154      g_assert(loadPercentage >= 0);
155        
156    return loadPercentage;    return loadPercentage;
157  }  }

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26