Skip to content

Commit

Permalink
xstat: removed faulty argc checks
Browse files Browse the repository at this point in the history
  • Loading branch information
trapd00r committed Jan 5, 2011
1 parent 7f6bbe4 commit 8344189
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions xstat
Expand Up @@ -27,7 +27,7 @@ function get_stats()
end


function to_tty(s, r)
function to_tty(s, r)
printf("%8s: %4d MB\n%s: %4d MB\n",
"Sent", s,
"Recieved", r
Expand All @@ -49,10 +49,6 @@ function usage(app, ver)
end


if(argv == 0) then
usage(app, version);
end

local sent, recieved = get_stats();

if(arg[1] == '-d') then
Expand Down

0 comments on commit 8344189

Please sign in to comment.