Changeset 211
- Timestamp:
- Oct 22, 2007, 5:41:04 PM (17 years ago)
- Location:
- trunk/web/templates
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/templates/info.tmpl
r207 r211 76 76 <tr><td>Machine Name:</td><td><input type="text" name="name" value="$defaults.name"/></td></tr> 77 77 $errorRow('name', $err) 78 <tr><td>Ram:</td><td><input type="text" size=3 name="memory" value="$defaults.memory"/>M B (max $max_mem)</td></tr>78 <tr><td>Ram:</td><td><input type="text" size=3 name="memory" value="$defaults.memory"/>MiB (max $max_mem)</td></tr> 79 79 $errorRow('memory', $err) 80 <tr><td>Disk:</td><td><input type="text" size=3 name="disk" value="$defaults.disk"/>G B (max $max_disk)</td><td>WARNING: Modifying disk size may corrupt your data.</td></tr>80 <tr><td>Disk:</td><td><input type="text" size=3 name="disk" value="$defaults.disk"/>GiB (max $max_disk)</td><td>WARNING: Modifying disk size may corrupt your data.</td></tr> 81 81 $errorRow('disk', $err) 82 82 #else -
trunk/web/templates/main.py
r209 r211 287 287 disk_fields.extend([(x % name, y % name) for x, y in 288 288 disk_fields_template]) 289 data_dict['%s_size' % name] = "%0.1f G B" % (disk.size / 1024.)289 data_dict['%s_size' % name] = "%0.1f GiB" % (disk.size / 1024.) 290 290 return disk_fields 291 291 … … 497 497 display_fields[disk_point+1:]) 498 498 499 main_status['memory'] += ' M B'499 main_status['memory'] += ' MiB' 500 500 for field, disp in display_fields: 501 501 if field in ('uptime', 'cputime') and locals()[field] is not None: -
trunk/web/templates/validation.py
r209 r211 110 110 except ValueError: 111 111 raise InvalidInput('memory', memory, 112 "Minimum %s M B" % MIN_MEMORY_SINGLE)112 "Minimum %s MiB" % MIN_MEMORY_SINGLE) 113 113 if memory > maxMemory(user, machine, on): 114 114 raise InvalidInput('memory', memory, 115 'Maximum %s M B' % maxMemory(user, machine))115 'Maximum %s MiB' % maxMemory(user, machine)) 116 116 return memory 117 117 … … 128 128 except ValueError: 129 129 raise InvalidInput('disk', disk, 130 "Minimum %s G B" % MIN_DISK_SINGLE)130 "Minimum %s GiB" % MIN_DISK_SINGLE) 131 131 return disk 132 132
Note: See TracChangeset
for help on using the changeset viewer.