Skip to content

Commit

Permalink
截断浮点
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshaopengkael committed Apr 25, 2016
1 parent ef6874c commit c8b48fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LSUnusedResources/ViewController/MainViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColu
} else if ([columnIdentifier isEqualToString:kTableColumnImageShortName]) {
return info.name;
}else if ([columnIdentifier isEqualToString:kTableColumnFileSize]) {
NSString *fileSize = @"N\\A";
NSString *fileSize = @"NA";
if (!info.isDir) {
fileSize = @(info.fileSize/1024.).stringValue;
fileSize = [NSString stringWithFormat:@"%.1fKB", info.fileSize/1024.];
}
return fileSize;
}
Expand Down

0 comments on commit c8b48fd

Please sign in to comment.