ref: 54c5131529f06c190cdfcb906189cd6e324e2763
parent: 3049e7036b0e1f7c4af05b3c5377f8fc4aef9736
author: cinap_lenrek <[email protected]>
date: Sun Oct 7 04:03:02 EDT 2012
/sys/lib/acid/kernel: fix intrcount()
--- a/sys/lib/acid/kernel
+++ b/sys/lib/acid/kernel
@@ -340,22 +340,17 @@
}
defn intrcount() {
- local p, pp, t, i, j;
+ local p, t, i, j;
p = intrtimes;
- i=0;
- loop 1,256 do {
- pp = p[i];
- i=i+1;
- if pp != 0 then {
- j=0;
- t=0;
- loop 1,1000 do {
- t = t+pp[j];
- j=j+1;
- }
- print(itoa(i, "%5d"), " ", itoa(t, "%11d"), "\n");
+ i=0; loop 1,256 do {
+ t=0;
+ j=0; loop 1,20 do {
+ t = t+*p++;
+ j=j+1;
}
+ print(itoa(i, "%5d"), " ", itoa(t, "%11d"), "\n");
+ i=i+1;
}
}