Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 231785 | Differences between
and this patch

Collapse All | Expand All

(-)org/ibam-krell.cpp (-3 / +3 lines)
Lines 41-49 Link Here
41
		   static ibam a;
41
		   static ibam a;
42
		   static char buffer[80];
42
		   static char buffer[80];
43
		   char *l;
43
		   char *l;
44
		   static char *bat="batt";
44
		   static char *bat="Batt";
45
		   static char *charge="chrg";
45
		   static char *charge="Char";
46
		   static char *full="full";
46
		   static char *full="Full";
47
		   static long lasttime=time(NULL);
47
		   static long lasttime=time(NULL);
48
		   a.update();
48
		   a.update();
49
		   if(a.valid())
49
		   if(a.valid())
(-)org/ibam.inl (-1 / +1 lines)
Lines 133-139 Link Here
133
   in >> c >> d; // 0x
133
   in >> c >> d; // 0x
134
   in >> c >> d; 
134
   in >> c >> d; 
135
   batteryFlag=(c>'9'?c-'a'+10:c-'0')*16+(d>'9'?d-'a'+10:d-'0');
135
   batteryFlag=(c>'9'?c-'a'+10:c-'0')*16+(d>'9'?d-'a'+10:d-'0');
136
   chargeStatus = (batteryStatus&8)!=0;
136
   chargeStatus = (batteryFlag&8)!=0;
137
   in >> remainingBatteryPercent >> c; // % 
137
   in >> remainingBatteryPercent >> c; // % 
138
   string minsec; 
138
   string minsec; 
139
   in >> remainingBatteryLifeSeconds >> minsec; 
139
   in >> remainingBatteryLifeSeconds >> minsec; 

Return to bug 231785