Skip to content

Commit

Permalink
Fix a bug where the max scale wouldn’t be reset in the disk graph pro…
Browse files Browse the repository at this point in the history
…perly.
  • Loading branch information
mikepj committed May 18, 2020
1 parent f6ec466 commit a65ff4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Graph Views/XRGDiskView.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ @implementation XRGDiskView

- (void)awakeFromNib {
currentIndex = 0;
maxVal = 0;
maxVal = 1;
fastMax = 1024 * 1024;

parentWindow = (XRGGraphWindow *)[self window];
Expand Down Expand Up @@ -456,6 +456,8 @@ - (void)clearData:(NSEvent *)theEvent {
readValues[i] = 0;
writeValues[i] = 0;
}

maxVal = 1;
}

- (BOOL)acceptsFirstMouse:(NSEvent *)theEvent {
Expand Down

0 comments on commit a65ff4d

Please sign in to comment.