Did you restart your server so that it would load the new parameter? Also, could you try to put a debug line that would log the value of both $n_bytes and $max_bytes?
ns_log "Warning" "WARNING DEBUG>>>> n_bytes: $n_bytes ;; max_bytes: $max_bytes"
And check what are the values that are being checked.
Just my 2 cents,