diff options
Diffstat (limited to 'appl/cmd/fortune.b')
| -rwxr-xr-x | appl/cmd/fortune.b | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/appl/cmd/fortune.b b/appl/cmd/fortune.b index 7368e992..daf48185 100755 --- a/appl/cmd/fortune.b +++ b/appl/cmd/fortune.b @@ -52,7 +52,7 @@ init(nil: ref Draw->Context, args: list of string) if(ix != nil){ (nil, ixbuf) := sys->fstat(ix); (nil, fbuf) := sys->fstat(f.fd); - if(fbuf.mtime > ixbuf.mtime){ + if(fbuf.mtime >= ixbuf.mtime){ ix = nil; nix = sys->create(findex, Sys->OWRITE, 8r666); }else @@ -71,7 +71,7 @@ init(nil: ref Draw->Context, args: list of string) }else{ rand->init(truerand()); offs := 0; - g := bufio->fopen(ix, Bufio->ORDWR); + g := bufio->fopen(nix, Bufio->ORDWR); for(i := 1;; i++){ if(nix != nil) offs = int f.offset(); |
