X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=old-door-deamon%2Fledstats-0.3.1%2Fledcpu.c;fp=old-door-deamon%2Fledstats-0.3.1%2Fledcpu.c;h=1a79e630ceb1773e5fe46cef6b9e975ad84a7476;hb=449ec160563729c65a6210431ba86eb463ed6373;hp=0000000000000000000000000000000000000000;hpb=02329ab3fb38d1f22f7c910be92ae4388a132b01;p=svn42.git diff --git a/old-door-deamon/ledstats-0.3.1/ledcpu.c b/old-door-deamon/ledstats-0.3.1/ledcpu.c new file mode 100644 index 0000000..1a79e63 --- /dev/null +++ b/old-door-deamon/ledstats-0.3.1/ledcpu.c @@ -0,0 +1,40 @@ +#include +#include +#include +#include +#include + +#include + +/* Get the current statistics on the cpu */ + + +int loop(void) +{ + FILE *pstat; + int load; + int lights[MAXLED]; + int blink=0; + + +// led_off_all(); + +// for(load = 0; load <= ; load++) +// lights[1] = 1; + + led_on(1); + + //led_set_on(lights); + +// led_on_all(); + + return(0); +} + +int main(int argc, char **argv) +{ + + loop(); + + return(EXIT_SUCCESS); +}