[ltp] Running without a battery?

Bob Toxen linux-thinkpad@linux-thinkpad.org
Wed, 14 Jan 2004 22:54:30 -0500


Where might I buy a Lithium battery cheaply for my RR31?  I live in the U.S.
but was not smart enough to remove the battery from the laptop that normally
runs continuously until now.  Now, a year later the battery has lost about
67% of its charge.

Here's my enhanced spin.c:
/*
 * Spin.  Placed into the public domain by Bob Toxen.
 */

#include <stdio.h>
#include <time.h>

time_t time(time_t *);

main() {  
	volatile
	int	i	= 2E9;
	time_t	start;

	time(&start);
	while (i)
		i--;
	printf("spun for %ld seconds\n", (long) (time(0) - start));
	exit(0);
}

Bob Toxen, CTO
Fly-By-Day Consulting, Inc.
"Your expert in Firewalls, Virus and Spam Filters, VPNs,
Network Monitoring, and Network Security consulting"
bob@verysecurelinux.com (e-mail)
http://www.verysecurelinux.com       [Network & Linux/Unix Security Consulting]