
NeoUpDownMeter
Source (link to git-repo or to original if based on someone elses unmodified work):
Available as/for:
Description:You can run app in two modes:
- daemon - with -d parameter
- normal - without any parameters
You can run app in daemon mode first and then in normal mode to have a look at current transfers' values.
IMPORTANT:
app depends on ifconfig, if somethings works wrong type in the console:
# ln -s /sbin/ifconfig /bin
1.3.2
+ transfers weren't cleanly set to zero with beginning of new month - fixed
1.3.1
+ longer timer interval in daemon mode = lower cpu load
1.3.0
+ average month transfers added
+ second unstable version released
1.1.0
+ first unstable version released
Ratings & Comments
28 Comments
A SlackWare 10.2 Package with SlackBuild script is ready to download!! http://www.slacky.it/index.php?option=com_remository&Itemid=29&func=fileinfo&filecatid=794&parent=category
it's ok its prob something on my system thats fubard echo $QTDIR said /usr/lib/qt so i did that command and now it said /usr/lib/qt-3.3.3,anywho I still gives me the same error tho its a lil diff than before I can paste it if youd like.
so paste that.
as i've mentioned, i'd like to see Your Makefile, even now i saw something: g++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt/mkspecs/default -I. -I. -I/usr/lib/qt/include -o cmeter.o cmeter.cpp /usr/lib/qt-3.3.3/include/qapplication.h please compare these paths.
here goes the makefile sorry I forgot to include last time ############################################################################# # Makefile for building: NeoUpDownMeter # Generated by qmake (1.07a) (Qt 3.3.3) on: Thu Aug 25 08:35:16 2005 # Project: NeoUpDownMeter.pro # Template: app # Command: $(QMAKE) -o Makefile NeoUpDownMeter.pro ############################################################################# ####### Compiler, tools and options CC = gcc CXX = g++ LEX = flex YACC = yacc CFLAGS = -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT CXXFLAGS = -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT LEXFLAGS = YACCFLAGS= -d INCPATH = -I/usr/lib/qt/mkspecs/default -I. -I. -I$(QTDIR)/include LINK = g++ LFLAGS = -Wl,-rpath,$(QTDIR)/lib LIBS = $(SUBLIBS) -L$(QTDIR)/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm AR = ar cqs RANLIB = MOC = $(QTDIR)/bin/moc UIC = $(QTDIR)/bin/uic QMAKE = qmake TAR = tar -cf GZIP = gzip -9f COPY = cp -f COPY_FILE= $(COPY) COPY_DIR = $(COPY) -r INSTALL_FILE= $(COPY_FILE) INSTALL_DIR = $(COPY_DIR) DEL_FILE = rm -f SYMLINK = ln -sf DEL_DIR = rmdir MOVE = mv -f CHK_DIR_EXISTS= test -d MKDIR = mkdir -p ####### Output directory OBJECTS_DIR = ./ ####### Files HEADERS = cmeter.h \ frmmain.ui.h SOURCES = cmeter.cpp \ main.cpp OBJECTS = cmeter.o \ main.o \ frmmain.o \ frmsettings.o FORMS = frmmain.ui \ frmsettings.ui UICDECLS = frmmain.h \ frmsettings.h UICIMPLS = frmmain.cpp \ frmsettings.cpp SRCMOC = moc_frmmain.cpp \ moc_frmsettings.cpp OBJMOC = moc_frmmain.o \ moc_frmsettings.o DIST = NeoUpDownMeter.pro QMAKE_TARGET = NeoUpDownMeter DESTDIR = TARGET = NeoUpDownMeter first: all ####### Implicit rules .SUFFIXES: .c .o .cpp .cc .cxx .C .cpp.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< .cc.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< .cxx.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< .C.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< .c.o: $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< ####### Build rules all: Makefile $(TARGET) $(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(OBJCOMP) $(LIBS) mocables: $(SRCMOC) uicables: $(UICDECLS) $(UICIMPLS) $(MOC): ( cd $(QTDIR)/src/moc && $(MAKE) ) Makefile: NeoUpDownMeter.pro /usr/lib/qt/mkspecs/default/qmake.conf /usr/lib/qt/lib/libqt-mt.prl $(QMAKE) -o Makefile NeoUpDownMeter.pro qmake: @$(QMAKE) -o Makefile NeoUpDownMeter.pro dist: @mkdir -p .tmp/NeoUpDownMeter && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .tmp/NeoUpDownMeter/ && $(COPY_FILE) --parents frmmain.ui.h .tmp/NeoUpDownMeter/ && ( cd `dirname .tmp/NeoUpDownMeter` && $(TAR) NeoUpDownMeter.tar NeoUpDownMeter && $(GZIP) NeoUpDownMeter.tar ) && $(MOVE) `dirname .tmp/NeoUpDownMeter`/NeoUpDownMeter.tar.gz . && $(DEL_FILE) -r .tmp/NeoUpDownMeter mocclean: -$(DEL_FILE) $(OBJMOC) -$(DEL_FILE) $(SRCMOC) uiclean: -$(DEL_FILE) $(UICIMPLS) $(UICDECLS) yaccclean: lexclean: clean: mocclean uiclean -$(DEL_FILE) $(OBJECTS) -$(DEL_FILE) *~ core *.core ####### Sub-libraries distclean: clean -$(DEL_FILE) $(TARGET) $(TARGET) FORCE: ####### Compile cmeter.o: cmeter.cpp cmeter.h main.o: main.cpp frmmain.h frmmain.h: frmmain.ui $(UIC) frmmain.ui -o frmmain.h frmmain.cpp: frmmain.h frmmain.ui $(UIC) frmmain.ui -i frmmain.h -o frmmain.cpp frmsettings.h: frmsettings.ui $(UIC) frmsettings.ui -o frmsettings.h frmsettings.cpp: frmsettings.h frmsettings.ui $(UIC) frmsettings.ui -i frmsettings.h -o frmsettings.cpp frmmain.o: frmmain.cpp frmmain.ui.h \ frmmain.h frmsettings.o: frmsettings.cpp frmsettings.h moc_frmmain.o: moc_frmmain.cpp frmmain.h moc_frmsettings.o: moc_frmsettings.cpp frmsettings.h moc_frmmain.cpp: $(MOC) frmmain.h $(MOC) frmmain.h -o moc_frmmain.cpp moc_frmsettings.cpp: $(MOC) frmsettings.h $(MOC) frmsettings.h -o moc_frmsettings.cpp ####### Install install: uninstall:
Maybe you just have to include <stdlib.h> to the frmmain.cpp? Exit is declared in this header file. See man 3 exit.
there is no need to do something like that - study trolltech documentation; i've shown solution to that problem below and it isn't fault of my source :P
below paths aren't correct!!! INCPATH = -I/usr/lib/qt/mkspecs/default -I. -I. -I$(QTDIR)/include that path is correct: /usr/lib/qt-3.3.3/include so try: INCPATH = -I/usr/lib/qt-3.3.3/mkspecs/default -I. -I. -I$(QTDIR)/include also check whether QTDIR variable is correct and export it if required.
sorry I dont know where to change some of the stuff you said I am kind of new to linux any extra help would be appreciated,seems like a very good app.
You have that in Your Makefile: /usr/lib/qt/mkspecs/default replace qt with qt-3.3.3, then type make (only), not qmake, make because qmake overwrite Makefile; if it still won't compile check QTDIR variable; type echo $QTDIR, it should be /usr/lib/qt-3.3.3, if it isn't export it: export QTDIR="/usr/lib/qt-3.3.3".
still wont compile oh well i guess ill try later
what echo $QTDIR shows? i'll add binary file to archive but believe me it isn't my fault that You cannot compile that :/
I get this error during make In file included from frmmain.cpp:24: frmmain.ui.h: In member function `void frmMain::init()': frmmain.ui.h:81: error: `exit' undeclared (first use this function) frmmain.ui.h:81: error: (Each undeclared identifier is reported only once for each function it appears in.) make: *** [frmmain.o] Error 1
i have gcc 4 and qt 3.3.4 and it compiles cleanly; do You have qt-devel installed? what is Your qt version? please write what are You doing step by step.
distro: Slackware 10.1 gcc 3.3.4 qt 3.3.3 KDE 3.4.2. I am doing exactly what the instructions say qmake then make,thanks.
but what about qt-devel?
afaik slackware does not need qt-devel only other distros suse,debian etc
exit function is declared in qapplication header file so probably You have problem with location of qt headers; please make sure You really have qt headers (simply type updatedb and then locate qapplication.h) also paste here content of Your Makefile "Compiler, tools and options" section which contains important information about location of header files in Your system.
here goes the full error of make /usr/lib/qt/bin/uic frmmain.ui -o frmmain.h /usr/lib/qt/bin/uic frmsettings.ui -o frmsettings.h g++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt/mkspecs/default -I. -I. -I/usr/lib/qt/include -o cmeter.o cmeter.cpp g++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt/mkspecs/default -I. -I. -I/usr/lib/qt/include -o main.o main.cpp /usr/lib/qt/bin/uic frmmain.ui -i frmmain.h -o frmmain.cpp g++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt/mkspecs/default -I. -I. -I/usr/lib/qt/include -o frmmain.o frmmain.cpp In file included from frmmain.cpp:24: frmmain.ui.h: In member function `void frmMain::init()': frmmain.ui.h:81: error: `exit' undeclared (first use this function) frmmain.ui.h:81: error: (Each undeclared identifier is reported only once for each function it appears in.) make: *** [frmmain.o] Error 1 and locate qapplication.h /usr/lib/qt-3.3.3/doc/html/qapplication.html /usr/lib/qt-3.3.3/include/qapplication.h
What is that karamba theme that you have showing in your screenshots?
awesome_karamba_2
KNemo does NOT store total values so I don't need something like that, current transfers' values are minor issue; DO NOT write bullshit until You test my app; real problem may consist in ifconfig which reports values in bytes so if variables are unsigned int 32bit and value hit 4GiB it may zero, I've taken that into consideration when I was writing code and I store values in KiB so the max value is 4TiB but in this situation it may be useless :(
Ok, my fault, but totals can be easily implemented. Also, you don't have to be that agressive when answering to comments, please grow up and learn to answer politely in the same way I made the comment to you.
everything is easy to implement if programmer knows how to do it; the only thing I want users to do is to use my software and THEN to write what They think about it; tomorrow some sucker write in comment that Your app is crap because he saw the screenshot and he didn't like it and that's what makes me angry.
KNemo does this and much, much more ;)