Fix disk_perc by casting it to int
This commit is contained in:
		@@ -30,8 +30,8 @@ disk_perc(const char *mnt)
 | 
				
			|||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return bprintf("%d", 100 *
 | 
						return bprintf("%d", (int)(100 *
 | 
				
			||||||
				   (1.0f - ((float)fs.f_bfree / (float)fs.f_blocks)));
 | 
									   (1.0f - ((float)fs.f_bfree / (float)fs.f_blocks))));
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const char *
 | 
					const char *
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user