Dynamical scaling and generalized Omori law