Simplify code
- Simplify code (revert to isbear's code in do_uptime() now that the
initialization logic works better)
- Calculate starttime precisely when using the /proc filesystem
- Display the start date when /uptime is called
This is a mcabber module to show mcabber uptime. It is probably linux-specific,
and will not work on other systems.
INSTALLATION
To install it, you need:
glib
mcabber
cmake
make
gcc
Then do
$ mkdir build
$ cd build
$ cmake ..
$ make edit_cache
$ make
# make install
Debian users can instead of make install do
$ fakeroot make package
# dpkg -i libmcabber-uptime*.deb
Users of other distributions can select appropriate package
generator, using cache editor.
LICENSE
This code underlies terms of GNU GPL v2 or later. You can find it in file COPYING
from this distribution or on a GNU web-site <http://www.gnu.org/licenses/>.
CONTACTS
I will be happy to get feedback, patches, suggestions, etc.
You can send me email or contact via jabber <isbear@unixzone.org.ua>.
-- Myhailo Danylenko <isbear@ukrpost.net>